Re: [Matplotlib-users] Adding a ready figure to pyplot.

2012-07-29 Thread Anton Akhmerov
Phil Elson writes: > > I don't have a good answer to this and have had to implement such a > thing in an outstanding pull request (in my case, I have a figure > which has been un-pickled and needs re-attaching to pyplot). > > My proposed mechanism goes something like: > > figure = matplotlib.f

Re: [Matplotlib-users] Adding a ready figure to pyplot.

2012-07-29 Thread Phil Elson
I don't have a good answer to this and have had to implement such a thing in an outstanding pull request (in my case, I have a figure which has been un-pickled and needs re-attaching to pyplot). My proposed mechanism goes something like: figure = matplotlib.figure.Figure(...) import matplotlib.

[Matplotlib-users] Adding a ready figure to pyplot.

2012-07-29 Thread Anton Akhmerov
Hi, I am writing a module which should, among other things, output images, and it should work both in interactive mode and when imported as a script. In order for the plotting behavior to be clean, I would like to prepare the figure separate from pyplot. The reason for this, is that the figure