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 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 any case, you hav

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

2009-04-17 Thread Andrew Romero
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   the files plottest.py.txt, out.txt and myfig.png are attached     Thanks   Andy import time import csv import matplo

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 spu

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] 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

[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 = figure(fig

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 0.9

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,

[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: http://www.nabble

[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')

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 bu