[Matplotlib-users] matplotlib dropping points in complex plot?

2009-05-26 Thread Will Grover
Hello matplotlib users, I'm using matplotlib to plot some large data sets (1 million x,y pairs) and I've noticed that, when zoomed out to view the whole plot, it looks as if only every Nth point is being plotted, maybe in an attempt to improve plotting performance in complex plots. When I zoom in

Re: [Matplotlib-users] glitch in examples of draggable rectangle

2009-05-26 Thread Ryan May
On Tue, May 26, 2009 at 1:50 PM, william ratcliff < william.ratcl...@gmail.com> wrote: > Hi! I just tried the draggable rectangle "extra credit" example from: > http://matplotlib.sourceforge.net/users/event_handling.html > and as it is, it doesn't work. In the on_press method, I had to change: >

[Matplotlib-users] glitch in examples of draggable rectangle

2009-05-26 Thread william ratcliff
Hi! I just tried the draggable rectangle "extra credit" example from: http://matplotlib.sourceforge.net/users/event_handling.html and as it is, it doesn't work. In the on_press method, I had to change: x0,y0=self.rect.xy to: x0=self.rect.get_x() y0=selft.rect.get_y() which then works, but I fin

Re: [Matplotlib-users] saving png under XP crashes ...

2009-05-26 Thread John Hunter
On Tue, May 26, 2009 at 7:30 AM, Esmail wrote: > Christoph Gohlke wrote: >> Hi, >> >> I can confirm the crash of python.exe when saving PNG files using >> matplotlib 0.98.5.3 under Python 2.5.4 and 2.6.2 (32 bit binaries from >> python.org) on Windows Vista 64 bit. Saving to a PDF file works > > A

Re: [Matplotlib-users] saving png under XP crashes ...

2009-05-26 Thread Esmail
John Hunter wrote: > > OK, I can confirm this on my side. Hi John, thanks for confirming this. I tried on my office machine too, XP SP3 instead of SP2 and I had exactly the same problem with the fresh install here too. Esmail

Re: [Matplotlib-users] again pb with ticks in colorbar

2009-05-26 Thread Eric Firing
Jean-Christophe Penalva wrote: > Hello, > > i've a figure and a colorbar, but i can't put my ticks on the colorbar. The > colorbar is display without any values. > > exemple of my code : > ... > plt.colorbar(c, orientation='horizontal', ticks=[int(valmin), int(valmax)]) > ... > In my exam

Re: [Matplotlib-users] plot a triangular mesh

2009-05-26 Thread Robert Kern
On 2009-05-23 21:35, Eric Carlson wrote: > Hello Robert, > I studied delaunay and mlab.griddata a bit while converting tinterp and > saw the > > """ > tri = delaunay.Triangulation(x,y) > # interpolate data > interp = tri.nn_interpolator(z) > zo = interp(xi,yi

[Matplotlib-users] again pb with ticks in colorbar

2009-05-26 Thread Jean-Christophe Penalva
Hello, i've a figure and a colorbar, but i can't put my ticks on the colorbar. The colorbar is display without any values. exemple of my code : ... plt.colorbar(c, orientation='horizontal', ticks=[int(valmin), int(valmax)]) ... In my example, valmin can be 0.0 and valmax 243.0, but there'

Re: [Matplotlib-users] Memory leak somewhere?

2009-05-26 Thread John Hunter
On Tue, May 26, 2009 at 7:39 AM, Michael Droettboom wrote: > Does it help if you add a call to "plt.clf()" to the bottom of the loop? > > The pyplot interface keeps a reference around to every figure created > until they are destroyed so that it can be obtained again by number > (this is functiona

Re: [Matplotlib-users] saving png under XP crashes ...

2009-05-26 Thread Esmail
Christoph Gohlke wrote: > Hi, > > I can confirm the crash of python.exe when saving PNG files using > matplotlib 0.98.5.3 under Python 2.5.4 and 2.6.2 (32 bit binaries from > python.org) on Windows Vista 64 bit. Saving to a PDF file works Ah .. that's disappointing, but good to know .. just wan

Re: [Matplotlib-users] Memory leak somewhere?

2009-05-26 Thread Michael Droettboom
Does it help if you add a call to "plt.clf()" to the bottom of the loop? The pyplot interface keeps a reference around to every figure created until they are destroyed so that it can be obtained again by number (this is functionality inspired by matlab). Alternatively, you can use the object-o

[Matplotlib-users] Memory leak somewhere?

2009-05-26 Thread iCy-fLaME
I was trying to use matplotlib to plot a series of 2D images, but python was using up a large amount of RAM very quickly. I don't know matplotlib that well, so the chance are I am missing something, would appreciate it if anyone can point me to the right direction. I am using: Python 2.4.3 (#1, Ja

[Matplotlib-users] degenerate matrix when moving mouse over a plot

2009-05-26 Thread Damien Leroux
Hi all, I'm new to this list so I hope somebody hasn't just posted about the same topic. I'm using matplotlib 0.98.5.2 (rev 6660) with python 2.5 under windows, and ran across an old bug which was (supposedly) fixed in rev 5922. (http://www.mailinglistarchive.com/matplotlib-users@lists.sourcef