Maximized vs non-maximized output

Okay, I posted the "ugly" vs "pretty" plots at:

http://new.photos.yahoo.com/kimwaic106/album

I stripped out most of the titles and subtitles but I think you can still see the difference between the two. (Don't worry about the middle unintelligble part).

Regards,

···

--
John Henry

----- Original Message ----
From: "kc106_2005-matplotlib@...9..." <kc106_2005-matplotlib@...9...>
To: matplotlib-users@lists.sourceforge.net
Sent: Wednesday, February 21, 2007 11:37:54 AM
Subject: Re: [Matplotlib-users] Maximized vs non-maximized output

Okay, I tried saving using the postscript format, and I end up with the "ugly" 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 part is correct but it means I end up with the same font, and dimension as the non-maximized version.

Somehow, 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 plot. I just wish there is a simple way to accomplish that in batch mode.

Regards,

--
John Henry

----- Original Message ----
From: "kc106_2005-matplotlib@...9..." <kc106_2005-matplotlib@...9...>
To: matplotlib-users@lists.sourceforge.net
Sent: Wednesday, February 21, 2007 11:17:18 AM
Subject: Re: [Matplotlib-users] Maximized vs non-maximized output

Thanks for the reply, Darren.

I 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.

I'll try to figure out a way to post the plots.

BTW: I called savefig with the filename, and a dpi of 600 and nothing else. May be that was the problem.

Regards,

-----Original Message-----
From: Darren Dale [mailto:dd55@…163…]
Sent: Wednesday, February 21, 2007 10:54 AM
To: matplotlib-users@lists.sourceforge.net
Cc: kc106_2005-matplotlib@...9...
Subject: Re: [Matplotlib-users] Maximized vs non-maximized output

On Wednesday 21 February 2007 01:40:59 pm > kc106_2005-matplotlib@...9... > wrote:
> Hi list,
>
> I am still fairly new to Matplotlib.
>
> If I use the default settings, after creating a plot, and save the
> file, I get a .png file that looks really ugly. However, if I view
> the plot at the screen first (using the show() command),
maximized the
> plot, and then save the file, I get a very nice looking
.png file. If
> I am doing lots of plots, obviously I don't want to have to
sit there
> and view each and every plots, maximize, save, ...
>
> How can I accomplish this in batch mode?

We could probably be of more help if you posted examples of
your "ugly"
and "nice" pngs. For now I'll take a guess: maybe what you
are seeing is an
effect of the resolution and figure size? You can pass a dpi
kwarg to the
savefig command, or you can set it in your rc settings. Also,
you can set the
figure size by doing "figure(figsize=(x,y))", or you can
change the default
figure size in your rc settings. How does your postscript
output look? That
format would not be influenced by resolution.

Darren

--
John Henry

I dont really see any difference between these two plots, aside from the
obvious and expected difference in font size and line width. If you want to
pursue this further, please try to be more descriptive than "ugly"
and "pretty".

Darren

···

On Wednesday 21 February 2007 03:44:56 pm kc106_2005-matplotlib@...9... wrote:

Okay, I posted the "ugly" vs "pretty" plots at:

http://new.photos.yahoo.com/kimwaic106/album

I stripped out most of the titles and subtitles but I think you can still
see the difference between the two. (Don't worry about the middle
unintelligble part).

Darren Dale wrote:

I dont really see any difference between these two plots, aside from the obvious and expected difference in font size and line width.

I suspect that is the OP's issue. Maybe this will help:

http://www.scipy.org/Cookbook/Matplotlib/AdjustingImageSize

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...