Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matplotlib 3.8 update #38077

Merged
merged 16 commits into from
Nov 1, 2024
Merged

Matplotlib 3.8 update #38077

merged 16 commits into from
Nov 1, 2024

Commits on Oct 31, 2024

  1. Due to the ContourSet change in the 3.8 release, we can now check for…

    … contour plots by looking for the ContourSet collection in ax.collections.
    
    Co-authored-by: Gui Pereira <gui.maciel-pereira@stfc.ac.uk>
    Co-authored-by: Sam Jones <samuel.jones@stfc.ac.uk>
    
    https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.8.0.html#contourset-is-now-a-single-collection
    Despiix committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    68f4738 View commit details
    Browse the repository at this point in the history
  2. plotfunctionsTest.py Pass again. Getting the current colour from the …

    …axes using Prop_cycler is removed from the newer versions of Matplotlib.
    Despiix committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    8e6aa89 View commit details
    Browse the repository at this point in the history
  3. Back to 3.8

    Despiix committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    67a406a View commit details
    Browse the repository at this point in the history
  4. Asserts possibly no longer necessary. They might be from a time when…

    … we had different versions of mpl on different OS.
    Despiix committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    9944e10 View commit details
    Browse the repository at this point in the history
  5. Fix test using QuadContourSet

    QuadContourSet is now a single collection instead of an artist, so I removed the call to .collections. https://matplotlib.org/3.8.4/api/prev_api_changes/api_changes_3.8.0.html#contourset-is-now-a-single-collection
    
    Co-authored-by: Gui Pereira <gui.maciel-pereira@stfc.ac.uk>
    Despiix and GuiMacielPereira committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    8366e97 View commit details
    Browse the repository at this point in the history
  6. Fixed 2 failing tests || UnboundLocalError

    Turned `current_ax_colour` into a global variable to avoid the error.
    Despiix committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    f48cfd1 View commit details
    Browse the repository at this point in the history
  7. Release notes

    Despiix committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    3a93a0c View commit details
    Browse the repository at this point in the history
  8. Axes3D.set_frame_on and Axes3D.get_frame_on removed

    In Matplotlib V3.8 the `Axes3D.set_frame_on` has no effect on 3D axes and is being removed in favor of `Axes3D.set_axis_on` and `Axes3D.set_axis_off`.
    Despiix committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    2ac79a1 View commit details
    Browse the repository at this point in the history
  9. ContourSet, edgecolor changes from list to array

    In the figuremanager.py the PathCollection no longer returns the paths. Instead, it has been moved to a new location where we get a QuadContourSet and change the edge colours that way instead.
    
    In the toolbar.py the edgecolour now receives an array of identical lists instead of a single list, so the first element is picked.
    
    Co-authored-by: Jonathan Haigh <jonathan.haigh@stfc.ac.uk>
    Despiix and jhaigh0 committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    1b86ae8 View commit details
    Browse the repository at this point in the history
  10. [pre-commit.ci] auto fixes from pre-commit.com hooks

    for more information, see https://pre-commit.ci
    pre-commit-ci[bot] authored and Despiix committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    a9a433e View commit details
    Browse the repository at this point in the history
  11. Set_Frame_On still necessary for 2D axes.

    Added the set_frame_on back to the 2D axes.
    Despiix committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    aa3d40b View commit details
    Browse the repository at this point in the history
  12. Update docs/source/release/v6.12.0/Framework/Dependencies/New_feature…

    …s/38077.rst
    
    
    Additional info on release notes
    
    Co-authored-by: James Clarke <139879523+jclarkeSTFC@users.noreply.github.com>
    Despiix and jclarkeSTFC authored Oct 31, 2024
    Configuration menu
    Copy the full SHA
    fdb9c2d View commit details
    Browse the repository at this point in the history
  13. Update qt/applications/workbench/workbench/plotting/toolbar.py

    Removed redundunt line
    
    Co-authored-by: James Clarke <139879523+jclarkeSTFC@users.noreply.github.com>
    Despiix and jclarkeSTFC authored Oct 31, 2024
    Configuration menu
    Copy the full SHA
    ee1761e View commit details
    Browse the repository at this point in the history
  14. Minor change in axisOn property

    Co-authored-by: James Clarke <139879523+jclarkeSTFC@users.noreply.github.com>
    Despiix and jclarkeSTFC authored Oct 31, 2024
    Configuration menu
    Copy the full SHA
    0b6b8a3 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2024

  1. Configuration menu
    Copy the full SHA
    80fa55c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b1ed371 View commit details
    Browse the repository at this point in the history