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

2007-10-08 Thread Michael Droettboom
I'll look into this. I actually made a similar fix on another project I used to work on... It should be theoretically possible, barring any roadblocks from how matplotlib is doing things. Cheers, Mike Wayne E. Harlan wrote: > I would like to follow up on my first response to Bill. It probabl

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 save

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 unders

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 p

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 figsiz

[Matplotlib-users] PDF problem?

2007-10-08 Thread Alan G Isaac
I'm having troubles saving figures as PDF. Matplotlib version 0.90.1 Simple example below. Cheers, Alan Isaac Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pylab >>> fig = p

Re: [Matplotlib-users] PDF problem?

2007-10-08 Thread Michael Droettboom
This is a problem using matplotlib 0.90.1 with Python 2.5. See here: http://sourceforge.net/tracker/index.php?func=detail&aid=1738494&group_id=80706&atid=560720 This patch applies cleanly against 0.90.1 Cheers, Mike Alan G Isaac wrote: > I'm having troubles saving figures as PDF. > Matplotlib

[Matplotlib-users] peculiar behavior of matplotlib function errorbar

2007-10-08 Thread Emanuele Passera
Hello to all, I have found a peculiar behavior of matplotlib function errorbar. See the code below and execute it all in once. What I get is that first image is ok. Second one loses all errorbar vertical line. I noticed that while i was generating some graphs with errorbar in a for cycle and i tri

Re: [Matplotlib-users] PDF problem?

2007-10-08 Thread Alan G Isaac
On Mon, 08 Oct 2007, Michael Droettboom apparently wrote: > http://sourceforge.net/tracker/index.php?func=detail&aid=1738494&group_id=80706&atid=560720 > > This patch applies cleanly against 0.90.1 Yes, that fixes it. Perhaps I should mention that the PDF rendering is very slow. Thanks! Alan

Re: [Matplotlib-users] PDF problem?

2007-10-08 Thread Michael Droettboom
Alan G Isaac wrote: > On Mon, 08 Oct 2007, Michael Droettboom apparently wrote: >> http://sourceforge.net/tracker/index.php?func=detail&aid=1738494&group_id=80706&atid=560720 >> >> This patch applies cleanly against 0.90.1 > > Yes, that fixes it. > > Perhaps I should mention that the PDF rende

Re: [Matplotlib-users] PDF problem?

2007-10-08 Thread Alan G Isaac
On Mon, 08 Oct 2007, Michael Droettboom apparently wrote: > If there are any particular things that are particularly > bad, please send an example plot that exercises it. I have noticed that scatter plots take a very long time to render. (Use say four subplots each with three hundred points.)

[Matplotlib-users] [Mac OS 10.4.10, Python 2.5] LineCollection error

2007-10-08 Thread David Goldsmith
Hi! I have some code importing MPL and wxmpl; presently, I have version 0.90.1 of the former installed and 1.2.8 of the latter. I hadn't run this code in a while; when I last did, in the late spring sometime, it worked fine. Now, when I do (from the command line), a call in it to .Axes.clear