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