savefig works for me when I put both the plotting commands and the savefig
call in the *same* code cell.


On Thu, Jun 13, 2013 at 10:31 AM, Sudheer Joseph
<sudheer.jos...@yahoo.com>wrote:

> Thank you,
> I don't see a way other than starting in normal mode as the moment I type
> plot command it get displayed and I don't need to do a show command.
> With best regards sudheer
>
>  ------------------------------
> * From: * Paul Hobson <pmhob...@gmail.com>;
> * To: * Sudheer Joseph <sudheer.jos...@yahoo.com>;
> * Cc: * matplotlib-users@lists.sourceforge.net <
> matplotlib-users@lists.sourceforge.net>;
> * Subject: * Re: [Matplotlib-users] savefig
> * Sent: * Thu, Jun 13, 2013 2:23:05 PM
>
>
> On Wed, Jun 12, 2013 at 10:28 PM, Sudheer Joseph <sudheer.jos...@yahoo.com
> > 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
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to