|
From: <kc1...@ya...> - 2007-02-21 19:17:29
|
Thanks for the reply, Darren.=0A=0AI didn't post the plot because I don't k= now 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 post the plots.= =0A=0ABTW: I called savefig with the filename, and a dpi of 600 and nothing= else. May be that was the problem.=0A=0ARegards,=0A=0A> -----Original Mes= sage-----=0A> From: Darren Dale [mailto:dd...@co...] =0A> Sent: Wednes= day, February 21, 2007 10:54 AM=0A> To: mat...@li....= net=0A> Cc: kc1...@ya...=0A> Subject: Re: [Matplotlib-us= ers] Maximized vs non-maximized output=0A> =0A> =0A> On Wednesday 21 Februa= ry 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 pl= ot 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, 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 could 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 yo= u can =0A> change the default =0A> figure size in your rc settings. How doe= s your postscript =0A> output look? That =0A> format would not be influence= d by resolution.=0A> =0A> Darren=0A> =0A =0A--=0AJohn Henry=0A=0A |