|
From: Paul H. <pmh...@gm...> - 2013-06-13 14:23:12
|
On Wed, Jun 12, 2013 at 10:28 PM, Sudheer Joseph
<sud...@ya...>wrote:
> Dear experts,
> I start ipython in ipython qtconsole --pylab=inline mode and make a plot.
> But if I use savefig('fig.png') the figure do not get saved instead I get a
> blank page.
>
> I also tried img.save('fig.png',png) but no use. Is there a way out or I
> need to do this after quitting and restarting in normal mode each time I
> want to save?
>
> ipython qtconsole --pylab=inline
>
>
> In [93]: ts.plot()
> Out[93]: <matplotlib.axes.AxesSubplot at 0x9135490>
>
The fig is destroyed after it has been displayed by the console. Try saving
it before it gets shown.
-p
|