[Matplotlib-users] remove() on text

2008-07-02 Thread Nihat
Hi, In a part of my code I use thisline = CL.CustomLine([x1, x2], [y1, y2], color='black', linestyle='--', picker=2, zorder=20, id=lbl) self.ax.add_line(thisline) if (cfg.linedraw_label): self.ax.text(x2, y2, lbl, fontname='Sans', fontsize=9, picker=2, zorder=20) In another part

Re: [Matplotlib-users] converting data between axis [0, 1] and data coordinates [min data, max data]

2008-07-02 Thread Nihat
Mike, Thanks for the help. It worked. I have another question but I will send it as a new thread. Nihat On Mon, Jun 30, 2008 at 12:02 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > > > Tony S Yu wrote: > >> >> On Jun 30, 2008, at 11:13 AM, Michael Droettboom wrote: >> >>> transScale is w

Re: [Matplotlib-users] transform for pylab.scatter

2008-07-02 Thread Brent Pedersen
On Wed, Jul 2, 2008 at 2:53 PM, Brent Pedersen <[EMAIL PROTECTED]> wrote: > hi, for pylab.plot, i am able to get the transform like this: > >import pylab >xs = [0, 999] >ys = [10, 555] > >f, = pylab.plot(xs, ys) >t = f.get_transform() >print t.transform(zip(xs, ys)) > > > ho

[Matplotlib-users] transform for pylab.scatter

2008-07-02 Thread Brent Pedersen
hi, for pylab.plot, i am able to get the transform like this: import pylab xs = [0, 999] ys = [10, 555] f, = pylab.plot(xs, ys) t = f.get_transform() print t.transform(zip(xs, ys)) how can i do that for a pylab.scatter? this: s = pylab.scatter(xs, ys) print s.ge

[Matplotlib-users] Cocoa backend for embedding in Cocoa application

2008-07-02 Thread Barry Wark
I've written the start of a Cocoa-native backend for matplotlib and would like to submit feedback on the code and on the possibility of including it in the standard matplotlib distribution. The backend implementation is not complete (image rendering and mathtext rendering are currently no implement

Re: [Matplotlib-users] best way to produce many charts

2008-07-02 Thread John Hunter
On Wed, Jul 2, 2008 at 3:20 PM, laurent oget <[EMAIL PROTECTED]> wrote: > I use the Pdf backend. I did do some digging in the GC module but have not > found anything yet Please keep all replies on list so others can contribute to the discussion and future generations of googlers can benefit from i

Re: [Matplotlib-users] best way to produce many charts

2008-07-02 Thread John Hunter
On Wed, Jul 2, 2008 at 2:56 PM, laurent oget <[EMAIL PROTECTED]> wrote: > I am using matplotlib to produce a big number(16000) of charts and am facing > a steady memory leak. my code sofar looks like: > > while(1): > fig=PL.figure(1) > ..plot some things.. > fig.clf() > PL.close() >

[Matplotlib-users] interpolation on irregularly spaced grids

2008-07-02 Thread Momme Butenschön
Trying to set the interpolation method for a NonUniformImage object I receive the following error: >>> im.set_interpolation('bilinear') Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.5/site-packages/matplotlib/image.py", line 396, in set_interpolation rai

[Matplotlib-users] best way to produce many charts

2008-07-02 Thread laurent oget
I am using matplotlib to produce a big number(16000) of charts and am facing a steady memory leak. my code sofar looks like: while(1): fig=PL.figure(1) ..plot some things.. fig.clf() PL.close() am i missing something? Laurent -

Re: [Matplotlib-users] help error

2008-07-02 Thread Darren Dale
Hi Gideon, On Wednesday 02 July 2008 11:34:46 am Gideon Simpson wrote: > So no one else has seen this bug? I'm on an OS X 10.5.4 machine with > fink python 2.5.2 and associated backend packages. i'm using my own > builds of numpy/scipy and matplotlib. > -gideon (Please don't top post, it makes

Re: [Matplotlib-users] LineCollection instance has no attribute 'get_lines'

2008-07-02 Thread Michael Droettboom
Yeah, it looks like this is a real bug (that only affects the 0.91.x maintenance branch). LineCollection seemingly had get_lines() at one point but it disappeared. I have committed a fix to SVN and attached a patch against legend.py. Cheers, Mike Yannick Copin wrote: Hi, I thought this At

Re: [Matplotlib-users] help error

2008-07-02 Thread Gideon Simpson
So no one else has seen this bug? I'm on an OS X 10.5.4 machine with fink python 2.5.2 and associated backend packages. i'm using my own builds of numpy/scipy and matplotlib. -gideon On Jul 1, 2008, at 11:16 AM, Gideon Simpson wrote: > matplotlib itself seems to work, in the sense that it m

[Matplotlib-users] LineCollection instance has no attribute 'get_lines'

2008-07-02 Thread Yannick Copin
Hi, I thought this AttributeError when using legend was solved a long time ago (see http://article.gmane.org/gmane.comp.python.matplotlib.general/10306) but I still face it in matplotlib 0.91.3, released 4 weeks ago (and this does not seem to have changed in recent version of collections.py).

[Matplotlib-users] no plot figures on Solaris with TkAgg

2008-07-02 Thread Sebastian Hauer
Hi, I am new to matplotlib and just installed it in my home directory as an egg along with numpy and pytz on Solaris 10. Building matplotlib using setupegg.py bdist_egg worked out just fine. But when I am trying to run the simple_plot.py example or do an interactive plot([1, 2, 3]); show(), all I

Re: [Matplotlib-users] findobj in pylab

2008-07-02 Thread Matthias Michler
Hello John, I'm not sure there is a better way, but the following works for me: -- from pylab import * fig = figure() # adding some subplots / axes instances subplot(121) x = linspace(-0.5, 1.5, 10) plot(x, 0.5*x