Re: [Matplotlib-users] Figure save hack

2012-03-16 Thread David Verelst
Hi, This sounds actually very interesting. I have been thinking about how to save matplotlib figures in a way comparable to the Matlab .fig format: a file that holds the data (for instance using HDF5/pytables, some figures might hold a lot of data) and the plotting commands to exactly reconstr

[Matplotlib-users] move legend to the foreground: how to use set_zorder() correctly?

2012-03-22 Thread David Verelst
Hi All, I am plotting on two different y-axes: one on the left (ax1) and one on the right (ax2). Both share the same x-axes. The problem I am facing relates back to the zorder of the legend (at least, that is what I think): I want it to be on the foreground at all times. In order to do so, I c

[Matplotlib-users] move legend to the foreground

2012-03-22 Thread David Verelst
Hi All, I am plotting on two different y-axes: one on the left (ax1) and one on the right (ax2). Both share the same x-axes. The problem I am facing relates back to the zorder of the legend (at least, that is what I think): I want it to be on the foreground at all times. In order to do so, I c

Re: [Matplotlib-users] Clearing figures from memory

2012-03-24 Thread David Verelst
A while ago I had exactly the same problem. I was running a script that create a lot of figures and saved them (as .png and .eps files) for viewing later (so not using the interactive viewing feature from pyplot). If I remember well, there was also a problem with the close() statement leaving s