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

DM-43682: external contributions from matplotlib dev #19

Merged
merged 8 commits into from
Apr 24, 2024

Commits on Apr 3, 2024

  1. Configuration menu
    Copy the full SHA
    c23d86e View commit details
    Browse the repository at this point in the history
  2. MNT: less pyplot usage

    - pyplot.rc_context is a wrapper of matplotlib.rc_context
    - pyplot.cm is a re-export of matplotlib.cm
    - set the current axes of the Figure in question without affecting global
      current figure
    tacaswell committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    81d75ce View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    db2dc48 View commit details
    Browse the repository at this point in the history
  4. MNT: explicitly check for Figure types

    Sniffing for `obj.number` is actually checking for "pyplot managed figures" not
    any figure (the attribute gets monkey-patched in as part of creating and
    registering the FigureManger via `plt.figure`).  As matplotlib is already
    unconditionally imported in this module do the isinstance check directly.
    
    The try...except is to support matplotlib < 3.4 when we added support for
    SubFigure.
    tacaswell committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    e25048d View commit details
    Browse the repository at this point in the history
  5. MNT: bury all pyplot imports with remaining usage

    This enables the user to do:
    
      sys.modules['matplotlib.pyplot'] = None
    
    to make ensure that they can avoid the global state associated with pyplot if
    they wish.
    tacaswell committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    ff3f702 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. Configuration menu
    Copy the full SHA
    6d764ff View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    760caa1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6ea159e View commit details
    Browse the repository at this point in the history