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

support Figure.add_plot with a figure handle #345

Open
headtr1ck opened this issue Feb 11, 2022 · 1 comment · May be fixed by #346
Open

support Figure.add_plot with a figure handle #345

headtr1ck opened this issue Feb 11, 2022 · 1 comment · May be fixed by #346

Comments

@headtr1ck
Copy link

As far as I can tell it is only possible to add custom figure files or the current active pyplot figure.
I would like to add a plot of a given matplotlib.figure.Figure object.

Currently we have the workaround by calling plt.figure(fig.number) to make fig the active figure before adding the plot.

Would it be possible to add an optional figure argument to "add_plot" (None=>active figure)?

@JelteF
Copy link
Owner

JelteF commented Feb 11, 2022 via email

@headtr1ck headtr1ck linked a pull request Feb 20, 2022 that will close this issue
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 a pull request may close this issue.

2 participants