Re: [Matplotlib-users] Cocoa Backend on Snow Leopard

2009-09-22 Thread Eric Bruning
On Tue, Sep 22, 2009 at 2:53 PM, Pierre GM wrote: > > On Sep 19, 2009, at 12:55 PM, Pierre GM wrote: > >> All, >> I'm trying to use the Cocoa backend on Snow Leopard, using r7791 >> (GCC 4.2.1 / Python 2.6.1 from Apple, 64b) >> Unfortunately, a simple `plot(range(10),range(10))` gives me an >> emp

Re: [Matplotlib-users] Updated Lasso Demo

2008-12-11 Thread Eric Bruning
+1 for including Brian's changes in the shipping example. Brian, You might also be interested in an alternate, polygon-based lasso I developed a while back. Though it meets my needs, beware of backend-specific problems with idle events that I never resolved. -Eric http://www.nabble.com/Alternate

Re: [Matplotlib-users] Animate scatter plots

2008-11-24 Thread Eric Bruning
p.show() >> >> AttributeError: 'NoneType' object has no attribute 'Bind' >> WARNING: Failure executing file: >> >> I am using MPL revision 6440. >> cheers, >> Johann >> >> Eric Bruning wrote: >>> >>&

Re: [Matplotlib-users] plotting labels for each 'artist' in a basemap

2008-11-21 Thread Eric Bruning
On Fri, Nov 21, 2008 at 12:24 PM, John Hunter <[EMAIL PROTECTED]> wrote: > On Fri, Nov 21, 2008 at 10:37 AM, Eric Bruning <[EMAIL PROTECTED]> wrote: >>> Can you post a complete, free-standing example script which replicates >>> the problem >> >> im

Re: [Matplotlib-users] Animate scatter plots

2008-11-21 Thread Eric Bruning
Hi Eric, > > On Fri, Nov 21, 2008 at 11:19 AM, Eric Jonas <[EMAIL PROTECTED]> wrote: >> I've looked through the latest examples as well as google and the list >> archives, and am still at a loss -- can anyone point me to an example of >> how to animate a scatter plot? I've attached a somewhat unpo

Re: [Matplotlib-users] plotting labels for each 'artist' in a basemap

2008-11-21 Thread Eric Bruning
> Can you post a complete, free-standing example script which replicates > the problem import matplotlib.pyplot as plt f=plt.figure() ax=f.add_subplot(111) ax.plot(range(10)) ax.text(-10, 5, 'this one is ok') ax.text(-1202255993.82, 5, 'this one fails') plt.show() > and also the output of the scr

Re: [Matplotlib-users] plotting labels for each 'artist' in a basemap

2008-11-20 Thread Eric Bruning
I just saw a similar error when trying to plot some text; in my case, basemap wasn't involved. The full error dump: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/text.py in draw(self, renderer) 486 --> 487 for line, wh, x, y in info: 488

Re: [Matplotlib-users] pcolor and imshow PDF sizes

2008-09-09 Thread Eric Bruning
he user in a nice way > yet. Eric Bruning had an elegant solution to add pre/post draw > callbacks that would have really helped with this [1], but I don't know > where all that ended. The precursor thread to the one Mike linked: http://www.mail-archive.com/[EMAIL PROTECTED]/msg02659.

[Matplotlib-users] Scatter plots with date axes

2008-07-18 Thread Eric Bruning
With the following snippet, I expect a vertical line from y=(0, 2) and squares at y=(4, 5, 6) at the specified time. No squares appear with the call to scatter, even though the y axis limits adjust to (0,7) as if something is being plotted. Is this a known limitation of scatter? I'm running the fo

[Matplotlib-users] Can I update symbol positions and colors in a collection?

2008-07-15 Thread Eric Bruning
I have scatterplots on several axes that are dynamically updated, and thus I need to keep track of each of the PolyCollection artists that represent the scattered data. I would like to keep the same PolyCollection object but update the positions, colors, etc. of the symbols, possibly changing their

[Matplotlib-users] Callback after axis limits changed and redraw

2008-07-08 Thread Eric Bruning
I need to trigger some data processing* after the user changes the limits of a plot (e.g., via pan, zoom or the 'home' button). The code below is my proof-of-concept solution to this problem, which I offer for discussion and reference. It was a good practice in learning the events system. I would n