Thank you Roban, Your that trick worked, if I keep ts.plot(), savefig('ts.pdf') both on same line it works!
with best regards Sudheer *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.in...@gmail.com;sudheer.jos...@yahoo.com Web- http://oppamthadathil.tripod.com *************************************************************** >________________________________ > From: Roban Kramer <roba...@gmail.com> >To: sudheer.jos...@yahoo.com >Cc: Paul Hobson <pmhob...@gmail.com>; "matplotlib-users@lists.sourceforge.net" ><matplotlib-users@lists.sourceforge.net> >Sent: Thursday, 13 June 2013 8:12 PM >Subject: Re: [Matplotlib-users] savefig > > > >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