|
From: <kc1...@ya...> - 2007-02-21 19:38:47
|
Okay, I tried saving using the postscript format, and I end up with the "ug= ly" plot also. In fact, if I maximize the plot and then save as .ps file,= I get ugly plot as well. So, saving it in PS made no difference - that pa= rt is correct but it means I end up with the same font, and dimension as t= he non-maximized version.=0A=0ASomehow, if I maximize the plot using the sh= ow() command, maximize it first, then save it (in png format), I end up wit= h a very nice looking plot. I just wish there is a simple way to accomplis= h that in batch mode.=0A=0ARegards,=0A =0A--=0AJohn Henry=0A=0A----- Origin= al Message ----=0AFrom: "kc1...@ya..." <kc106_2005-matpl= ot...@ya...>=0ATo: mat...@li...=0ASent: Wedne= sday, February 21, 2007 11:17:18 AM=0ASubject: Re: [Matplotlib-users] Maxim= ized vs non-maximized output=0A=0AThanks for the reply, Darren.=0A=0AI didn= 't post the plot because I don't know if the list accept email attachments,= and I don't have any space on the web for file sharing.=0A=0AI'll try to f= igure out a way to post the plots.=0A=0ABTW: I called savefig with the file= name, and a dpi of 600 and nothing else. May be that was the problem.=0A= =0ARegards,=0A=0A> -----Original Message-----=0A> From: Darren Dale [mailto= :dd...@co...] =0A> Sent: Wednesday, February 21, 2007 10:54 AM=0A> To:= mat...@li...=0A> Cc: kc106_2005-matplotlib@yahoo= .com=0A> Subject: Re: [Matplotlib-users] Maximized vs non-maximized output= =0A> =0A> =0A> On Wednesday 21 February 2007 01:40:59 pm =0A> kc106_2005-ma= tpl...@ya... =0A> wrote:=0A> > Hi list,=0A> >=0A> > I am still fairly= new to Matplotlib.=0A> >=0A> > If I use the default settings, after creati= ng a plot, and save the =0A> > file, I get a .png file that looks really ug= ly. However, if I view =0A> > the plot at the screen first (using the show= () command), =0A> maximized the =0A> > plot, and then save the file, I get = a very nice looking =0A> .png file. If =0A> > I am doing lots of plots, ob= viously I don't want to have to =0A> sit there =0A> > and view each and eve= ry plots, maximize, save, ...=0A> >=0A> > How can I accomplish this in batc= h mode?=0A> =0A> We could probably be of more help if you posted examples o= f =0A> your "ugly" =0A> and "nice" pngs. For now I'll take a guess: maybe w= hat you =0A> are seeing is an =0A> effect of the resolution and figure size= ? You can pass a dpi =0A> kwarg to the =0A> savefig command, or you can set= it in your rc settings. Also, =0A> you can set the =0A> figure size by doi= ng "figure(figsize=3D(x,y))", or you can =0A> change the default =0A> figur= e size in your rc settings. How does your postscript =0A> output look? That= =0A> format would not be influenced by resolution.=0A> =0A> Darren=0A> =0A= =0A--=0AJohn Henry=0A=0A=0A=0A=0A |