Re: [Matplotlib-users] Problem with .png files?

2007-10-08 Thread Michael Droettboom
This is now added in SVN, and only for the Agg backend(s). It won't work with some of the other ways to save PNG files, such as Gdk, Wx (non-Agg) and Cairo. If anyone was any thoughts about how to support saving the resolution in those backends, please share. Also note that resolution is

Re: [Matplotlib-users] Problem with .png files?

2007-10-08 Thread Bill Dandreta
Wayne E. Harlan wrote: I would like to follow up on my first response to Bill. It probably should be a new thread, but I'll start here. When png files are saved with a DPI=300 argument, and I open them in the Gimp, the dpi is only 72 (default ?). As I understand it, the dpi setting in

Re: [Matplotlib-users] Problem with .png files?

2007-10-08 Thread Michael Droettboom
Bill Dandreta wrote: Wayne E. Harlan wrote: I would like to follow up on my first response to Bill. It probably should be a new thread, but I'll start here. When png files are saved with a DPI=300 argument, and I open them in the Gimp, the dpi is only 72 (default ?). As I understand it,

Re: [Matplotlib-users] Problem with .png files?

2007-10-08 Thread Wayne E. Harlan
Not quite. The figure opens at the correct size in the gimp but all I see is background - no plot stuff. Wayne Michael Droettboom wrote: This is now added in SVN, and only for the Agg backend(s). It won't work with some of the other ways to save PNG files, such as Gdk, Wx (non-Agg) and

Re: [Matplotlib-users] Problem with .png files?

2007-10-08 Thread Michael Droettboom
Hmmm. I'm very surprised that this change could cause that. All it does is add an additional metadata chunk to the PNG file, which shouldn't have any affect on the image data itself. simple_plot.py works fine for me in GIMP 2.0.5 both before and after this change. Can you verify that this

Re: [Matplotlib-users] Problem with .png files?

2007-10-08 Thread Bill Dandreta
Michael Droettboom wrote: Bill Dandreta wrote: This info may or may not be useful. If I save a plot with savefig() without specifying a figsize, sometimes the figure gets clipped. What gets saved is the portion of the image that show() displays. I determined experimentally that

[Matplotlib-users] Problem with .png files?

2007-10-07 Thread Bill Dandreta
There appears to be a problem with .png files that matplotlib creates. Some programs (like GIMP http://www.gimp.org/ and xv) http://www.trilon.com/xv/ do not identify them as png files and cannot display them. -- Bill [EMAIL PROTECTED] Gentoo Linux X86_64 2.6.20-gentoo-r8 Reclaim Your Inbox

Re: [Matplotlib-users] Problem with .png files?

2007-10-07 Thread Wayne E. Harlan
Bill: I do not have that problem using mpl-0.90.1 or svn which I checked out and installed yesterday. I have gimp-2.2.17 and have no problems opening them on my linux system or my two XP systems at work. The issue I do find is that when I specify the DPI in the savefig command, it does not

Re: [Matplotlib-users] Problem with .png files?

2007-10-07 Thread Bill Dandreta
Wayne E. Harlan wrote: Bill: I do not have that problem using mpl-0.90.1 or svn which I checked out and installed yesterday. I have gimp-2.2.17 and have no problems opening them on my linux system or my two XP systems at work. The issue I do find is that when I specify the DPI in the

Re: [Matplotlib-users] Problem with .png files?

2007-10-07 Thread Eric Firing
Bill Dandreta wrote: There appears to be a problem with .png files that matplotlib creates. Some programs (like GIMP http://www.gimp.org/ and xv) http://www.trilon.com/xv/ do not identify them as png files and cannot display them. Would you be more specific, please? I can't reproduce the