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

Conversation

TallJimbo
Copy link
Member

No description provided.

tacaswell and others added 8 commits April 3, 2024 15:52
- 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
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.
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.
@TallJimbo TallJimbo merged commit 3a166c0 into main Apr 24, 2024
2 checks passed
@TallJimbo TallJimbo deleted the tickets/DM-43682 branch April 24, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants