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

_figure_cache problem if figure is closed #25

Open
jfburkhart opened this issue Jun 2, 2017 · 0 comments
Open

_figure_cache problem if figure is closed #25

jfburkhart opened this issue Jun 2, 2017 · 0 comments

Comments

@jfburkhart
Copy link
Member

Usage of _get_figure_cache and _figure_cache is a nice solution for keeping figures active for plotting. However, if working interactively in Ipython, and the figure is closed, the next time one tries to plot using the same parameters, there is an error something like:
KeyError: <matplotlib.axes._axes.Axes object at 0x7f4edb4b17f0>
resulting from the figure no longer being available.
The "working" solution is to pop the figure from the figure cache, for example:

rf.plotting._figure_cache.pop('defaultNoneNone')
But this is certainly not the intention.

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

No branches or pull requests

1 participant