[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

Re: [Matplotlib-users] 3d + log

2008-07-08 Thread Eric Firing
Yves Revaz wrote: > Hi all, > > Is there a way to define logarithmic axes when using axes3d ? > > lines like > ax = axes3d.Axes3D(fig) > > ax.semilogx() > or > ax.set_xscale('log') > > fail ! > > Thanks, > > yves > You are on your own with axes3d. It has been unmaintained for a long time,

Re: [Matplotlib-users] Arabic Character Support

2008-07-08 Thread Michael Droettboom
Thanks for the report. It's a bit convoluted, but it is automatable, at least, and I'm glad to see it works for you. I'd like to see a Cairo expert take on the task of upgrading our Cairo backend to use Pango. That would make this a little cleaner and theoretically fix the text alignment prob

Re: [Matplotlib-users] Arabic Character Support

2008-07-08 Thread Mathieu Leplatre
Thank you Michael and Darren. I'll keep your information for further polishing : So far, I am not having problems with my two-steps solution : 1) SVG backend 2) rsvg + Cairo, code snippet : svg = rsvg.Handle( filesvg ) width = svg.props.width height = svg.props.height surface = cairo.ImageSurf

Re: [Matplotlib-users] Problem of memory for image buffer

2008-07-08 Thread Michael Droettboom
Have a look here for some information about memory leaks: http://matplotlib.sourceforge.net/faq.html#LEAKS Can you provide a small standalone script that reproduces the error? It is possible that the figures are not being destroyed correctly because an extra reference is being held to them or

[Matplotlib-users] Problem of memory for image buffer

2008-07-08 Thread Maxime Bois
Hi all, I have a problem of free memory for image buffer when I use Matplotlib (the last version on linux). What i'm doing is that I create 4 figures in the same time, I save my plots and I close them. After that, I create 4 new figures, save them and close them... I do that many times and aft

Re: [Matplotlib-users] Python Distribution with matplotlib

2008-07-08 Thread Pierre Raybaut
2008/7/8 <[EMAIL PROTECTED]>: > On Thursday 03 July 2008 02:28:47 pm Michael Droettboom wrote: >> Friedrich Hagedorn wrote: >> > Hello, >> > >> > 2. Does anybody know a good python dirstibution including mpl? >> >> Enthought has one, but I have no experience with it. > > It might be worth keeping

Re: [Matplotlib-users] Python Distribution with matplotlib

2008-07-08 Thread Darren Dale
On Thursday 03 July 2008 02:28:47 pm Michael Droettboom wrote: > Friedrich Hagedorn wrote: > > Hello, > > > > today I tried to install mpl in my local home directory at work. This > > debian distribution is very old and I had to compile for my own. > > > > But I failed to compile pygtk (special cai

[Matplotlib-users] 3d + log

2008-07-08 Thread Yves Revaz
Hi all, Is there a way to define logarithmic axes when using axes3d ? lines like ax = axes3d.Axes3D(fig) ax.semilogx() or ax.set_xscale('log') fail ! Thanks, yves -- (o o) oOO--(_)--OOo--- Yv