Sorry - I accidentally sent this reply just to Nathaniel - returning
to this as it bit me again:
Wouldn't a better default be to just close all figures when they're
displayed? It can't be common that someone wants to show the same plot
repeatedly (and if they do that could have an option)...?
Yes, I think that would be a better default.
You mean that if :context: is true, then always do something like
``plt.close('all')`` before running the relevant code and looking for
figures.
It would change the current behavior, but I agree that would be better.
Anyone disagree?
If not, I will make a pull request to change the behavior...
Cheers,
Matthew
···
On 7/14/14, Nathaniel Smith <njs@...503...> wrote:
Yeah, put together a PR, and we can evaluate it better that way. I think the current plot directive behavior might need this sort of tightening up
···
On Sun, Oct 26, 2014 at 1:22 AM, Matthew Brett <matthew.brett@…149…> wrote:
Sorry - I accidentally sent this reply just to Nathaniel - returning
to this as it bit me again:
On 7/14/14, Nathaniel Smith <njs@…1023…> wrote:
Wouldn’t a better default be to just close all figures when they’re
displayed? It can’t be common that someone wants to show the same plot
repeatedly (and if they do that could have an option)…?
Yes, I think that would be a better default.
You mean that if :context: is true, then always do something like
plt.close('all')
before running the relevant code and looking for
figures.
It would change the current behavior, but I agree that would be better.
Anyone disagree?
If not, I will make a pull request to change the behavior…
Cheers,
Matthew
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel