|
From: <kc1...@ya...> - 2007-02-21 20:45:11
|
Okay, I posted the "ugly" vs "pretty" plots at:=0A=0Ahttp://new.photos.yaho= o.com/kimwaic106/album=0A=0AI stripped out most of the titles and subtitles= but I think you can still see the difference between the two. (Don't worr= y about the middle unintelligble part).=0A=0ARegards,=0A =0A--=0AJohn Henry= =0A=0A----- Original Message ----=0AFrom: "kc1...@ya..."= <kc1...@ya...>=0ATo: mat...@li...= .net=0ASent: Wednesday, February 21, 2007 11:37:54 AM=0ASubject: Re: [Matpl= otlib-users] Maximized vs non-maximized output=0A=0AOkay, I tried saving us= ing the postscript format, and I end up with the "ugly" plot also. In fac= t, if I maximize the plot and then save as .ps file, I get ugly plot as wel= l. So, saving it in PS made no difference - that part is correct but it me= ans I end up with the same font, and dimension as the non-maximized versio= n.=0A=0ASomehow, if I maximize the plot using the show() command, maximize = it first, then save it (in png format), I end up with a very nice looking p= lot. I just wish there is a simple way to accomplish that in batch mode.= =0A=0ARegards,=0A =0A--=0AJohn Henry=0A=0A----- Original Message ----=0AFro= m: "kc1...@ya..." <kc1...@ya...>=0ATo= : mat...@li...=0ASent: Wednesday, February 21, 20= 07 11:17:18 AM=0ASubject: Re: [Matplotlib-users] Maximized vs non-maximized= output=0A=0AThanks for the reply, Darren.=0A=0AI didn't post the plot beca= use 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 figure out a way to po= st the plots.=0A=0ABTW: I called savefig with the filename, and a dpi of 60= 0 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: matplotlib-users@lists= .sourceforge.net=0A> Cc: kc1...@ya...=0A> Subject: Re: [= Matplotlib-users] Maximized vs non-maximized output=0A> =0A> =0A> On Wednes= day 21 February 2007 01:40:59 pm =0A> kc1...@ya... =0A> = wrote:=0A> > Hi list,=0A> >=0A> > I am still fairly new to Matplotlib.=0A> = >=0A> > If I use the default settings, after creating a plot, and save the = =0A> > file, I get a .png file that looks really ugly. However, if I view = =0A> > the plot at the screen first (using the show() command), =0A> maximi= zed 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, obviously I don't want to = have to =0A> sit there =0A> > and view each and every plots, maximize, save= , ...=0A> >=0A> > How can I accomplish this in batch mode?=0A> =0A> We coul= d probably be of more help if you posted examples of =0A> your "ugly" =0A> = and "nice" pngs. For now I'll take a guess: maybe what 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 doing "figure(figsize=3D(x,= y))", or you can =0A> change the default =0A> figure size in your rc settin= gs. How does your postscript =0A> output look? That =0A> format would not b= e influenced by resolution.=0A> =0A> Darren=0A> =0A =0A--=0AJohn Henry=0A= =0A=0A=0A=0A=0A=0A=0A |