[Matplotlib-users] PNG performance tips

2008-03-03 Thread Jesper Larsen
Hi Matplotlib users, I have an application which produces PNG files using the AGG backend. When I profile the application I can see that much of the cpu time is spent in the method write_png called by print_figure in backend_agg.py. Does anyone know which backend is the best for producing fast

Re: [Matplotlib-users] error in savefig with wxAgg backend

2008-03-03 Thread Michael Droettboom
What version of matplotlib are you using? I have a vague recollection that this was fixed at one point. In any case, you should be able to get around this by casting your filename to a string as such: self.figure.savefig(str(image_file)) Hope that works for you, Mike Jeff Peery wrote:

Re: [Matplotlib-users] Masking data problems and fill test

2008-03-03 Thread Michaël Douchin
Thanks Pierre, I will try this package and come back here to give a feedback Michael Pierre GM a écrit : Michael, Give scikits.timeseries a try. It's a package designed to handle time series, with or without missing data or dates, for which matplotlib functions are also available.

Re: [Matplotlib-users] PNG performance tips

2008-03-03 Thread Michael Droettboom
Jesper Larsen wrote: Hi Matplotlib users, I have an application which produces PNG files using the AGG backend. When I profile the application I can see that much of the cpu time is spent in the method write_png called by print_figure in backend_agg.py. I have seen this myself. Keep in

Re: [Matplotlib-users] PNG performance tips

2008-03-03 Thread David Moore
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Droettboom wrote: Jesper Larsen wrote: Hi Matplotlib users, I have an application which produces PNG files using the AGG backend. When I profile the application I can see that much of the cpu time is spent in the method write_png called

Re: [Matplotlib-users] PNG performance tips

2008-03-03 Thread Jesper Larsen
On Mon, 2008-03-03 at 08:16 -0500, Michael Droettboom wrote: I have an application which produces PNG files using the AGG backend. When I profile the application I can see that much of the cpu time is spent in the method write_png called by print_figure in backend_agg.py. I have seen this

Re: [Matplotlib-users] PNG performance tips

2008-03-03 Thread Michael Droettboom
David Moore wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Droettboom wrote: Jesper Larsen wrote: Hi Matplotlib users, I have an application which produces PNG files using the AGG backend. When I profile the application I can see that much of the cpu time is spent in the

Re: [Matplotlib-users] Extended load function

2008-03-03 Thread Troels Kofoed Jacobsen
Oups, now i have attached the file -- Forwarded message -- From: Troels Kofoed Jacobsen [EMAIL PROTECTED] Date: Mon, Mar 3, 2008 at 3:51 PM Subject: Extended load function To: matplotlib-users@lists.sourceforge.net Hi everybody I have modified the load function (in

[Matplotlib-users] Extended load function

2008-03-03 Thread Troels Kofoed Jacobsen
Hi everybody I have modified the load function (in matplotlib.mlab) to be able to load strings e.g for use as xticks. Anyone willing to test and comment, 'cause when i'm done i'll send it as a patch. The usage is as follows: from reload import load

Re: [Matplotlib-users] error in savefig with wxAgg backend

2008-03-03 Thread Jeff Peery
Hi Mike, thanks for the tip. I will try it. I'm using 0.91.2. Thanks, Jeff -Original Message- From: Michael Droettboom [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2008 5:06 AM To: [EMAIL PROTECTED] Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] error in

Re: [Matplotlib-users] how load data to Image from String?

2008-03-03 Thread Christopher Barker
sa6113 wrote: Would you please help me ? I want to load data to Image (QImage) from String or binary String without using PIL module . you can load data straight into a numpy array with numpy.fromstring() -- if it's in an easy format (RGB, RGBA), then you should be able to go from there.

Re: [Matplotlib-users] Extended load function

2008-03-03 Thread John Hunter
On Mon, Mar 3, 2008 at 8:51 AM, Troels Kofoed Jacobsen [EMAIL PROTECTED] wrote: Hi everybody I have modified the load function (in matplotlib.mlab) to be able to load strings e.g for use as xticks. Anyone willing to test and comment, 'cause when i'm done i'll send it as a patch. The usage

[Matplotlib-users] basemap scalebar

2008-03-03 Thread Michael Hearne
Does the capability exist in basemap to create a scale bar on the map? If not, is this planned for the future? For reference, see the -L option in GMT's psbasemap, pscoast, etc. Thanks, -- Michael Hearne [EMAIL PROTECTED] (303)

Re: [Matplotlib-users] GEOS 3 and basemap

2008-03-03 Thread Jeff Whitaker
Adam Mercer wrote: On Sun, Dec 23, 2007 at 2:40 PM, Jeff Whitaker [EMAIL PROTECTED] wrote: Will basemap work with the newly released GEOS-3.0.0, or does it only work with 2.2.3 for now? Adam: It only works with 2.2.3. I have not been able to make it work with 3.0.0, so I don't

Re: [Matplotlib-users] basemap scalebar

2008-03-03 Thread Michael Hearne
Jeff - That would replicate the simple scale-bar from GMT. Below is my not-complete attempt at replicating the fancy scale bar. It would need some options for specifying different units (miles, nautical miles, etc.) and perhaps some more attention to spacing of the text from the scale

Re: [Matplotlib-users] how load data to Image from String?

2008-03-03 Thread sa6113
Is there anyway to use the modules that are already on the system, or those that are pure Python ? I want to show a plot that draws with backend agg in my GUI , I mean in a specified place that its type is Qlabel or QFrame , I don't want to save the plot befor show it. Christopher Barker wrote:

[Matplotlib-users] Returning contour points as an array

2008-03-03 Thread Adam Ginsburg
Hi, I'm trying to use the values of a contour plot to evaluate the min/max along a given axis in order to marginalize a 2d distribution. This effectively amounts to doing the same thing asked for in this post: http://sourceforge.net/mailarchive/message.php?msg_id=47505681.8030306%40hawaii.edu I