|
From: Goyo <goy...@gm...> - 2013-08-25 16:12:10
|
2013/8/23 Kari Aliranta <kar...@st...>: > 23.08.2013 20:57, Eric Firing kirjoitti: > Thank you. I'd like to stick to pure OO, but I'm using some > third party open source code that uses pylab extensively for > rather large and interactive (as in "includes scrollbars, > buttons and several types of events") figures. The code > works nicely in itself, and has an option to return the > figure object without actually showing the plot. > > I was hoping to take the returned figure as an object and > reset the related state environment information, effectively > "smuggling" the created figure out of the state environment. > If there is a simple way to do this in Matplotlib, that > would be quite useful. Does pyplot.close(fig) not do what you need? Goyo |