Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-17 Thread Matthias Michler
Hi Gökhan, I recommend you to use matplotlib.widgets.RectangleSelector instead of the zoom functionality to select the data (An example can be found at http://matplotlib.sourceforge.net/examples/widgets/rectangle_selector.html ). This will return you the x and y-coordinate of button press and

[Matplotlib-users] imshow: large eps-files

2009-04-17 Thread Peter Pippan
Hi, I was wondering about the eps output produced by imshow(). This program -- from pylab import * Z = rand(10,10) imshow(Z,interpolation='nearest',cmap=cm.bone) savefig('bone.eps') imshow(Z,interpolation='nearest',cmap=cm.gray) savefig('gray.eps')

[Matplotlib-users] GEOS Error

2009-04-17 Thread John [H2O]
Does anyone know what this error may result from: GEOS_ERROR: TopologyException: no outgoing dirEdge found (74.5584,-90,-90) Segmentation fault I am getting it for various projections and datasets... working with mpl_toolkits.basemap Thanks! -- View this message in context:

Re: [Matplotlib-users] Memory leak in Agg backend?

2009-04-17 Thread Andres Luhamaa
Michael Droettboom wrote: I am not able to reproduce this leak here with 0.98.6svn from today on RHEL4. What platform are you on? (See attached massif profile -- the memory usage is flat...) Mike Well, in my setup I see similar behaviour as in the initial question. Ubuntu 8.10 32bit,

Re: [Matplotlib-users] Memory leak in Agg backend?

2009-04-17 Thread Michael Droettboom
Are you able to run it inside of valgrind's massif tool? Calling out to ps can be a bit spurious (particularly with a memory-pooling Python build) especially for a leak this small. Mike Andres Luhamaa wrote: Michael Droettboom wrote: I am not able to reproduce this leak here with

[Matplotlib-users] EPS rasterizing - a solution (and a question)

2009-04-17 Thread Thomas Robitaille
Hi, A while ago, I sent an email around asking about the EPS output from matplotlib. The following example summarizes the problem well: import matplotlib matplotlib.use('Agg') from matplotlib.pyplot import * import numpy as np nx,ny = 10,10 image = np.random.random((nx,ny)) fig =

Re: [Matplotlib-users] GEOS Error

2009-04-17 Thread Jeff Whitaker
John [H2O] wrote: Does anyone know what this error may result from: GEOS_ERROR: TopologyException: no outgoing dirEdge found (74.5584,-90,-90) Segmentation fault I am getting it for various projections and datasets... working with mpl_toolkits.basemap Thanks! What versions of python,

Re: [Matplotlib-users] Getting arrax indices using the zoom tool

2009-04-17 Thread Gökhan SEVER
Thanks for the pointer Matthias, That is exactly what I have been looking for. I use the code from the RectangleSelector class help with your suggested code. I know that I have to update y-axis accordingly to x values such that their positions and sizes must much so that I can plot them in a new

Re: [Matplotlib-users] Memory leak in Agg backend?

2009-04-17 Thread Andres Luhamaa
Well, I have never used it before but here is the output from valgrind masstif, can you figure out something from this? The mem usage from python was still increasing. Andres Michael Droettboom wrote: Are you able to run it inside of valgrind's massif tool? Calling out to ps can be a bit

Re: [Matplotlib-users] New user having much trouble with formating dates on x-axis

2009-04-17 Thread Sandro Tosi
On Sat, Apr 18, 2009 at 00:22, Andrew Romero romero...@yahoo.com wrote: The script plottest.py.txt reads the data file (out.txt) and creates the plot (myfig.png); however, I am unable to format the dates ... they always print as floats .. help are those unix timestamps (from 1970-01-01)? In