Re: [Matplotlib-users] clabel manual

2010-02-06 Thread Jae-Joon Lee
The above version has some typos (while it works it had some side-effects), here is the corrected one. -JJ import matplotlib.blocking_input as blocking_input if blocking_input.BlockingMouseInput.add_click == blocking_input.BlockingContourLabeler.add_click: def mouse_event_stop(self, event ):

Re: [Matplotlib-users] Axes3D rotation not working when embedded in backend

2010-02-06 Thread Ben Axelrod
I looked into this issue a little bit and found that the FigureCanvas must be set on the Figure before the 3D axes is instantiated. A simple re-ordering of the lines in the code below makes mouse rotation work again. # ... self.figure = Figure() self.canvas = FigureCanvas(self, -1, self.figure)

Re: [Matplotlib-users] clabel manual

2010-02-06 Thread David Arnold
JJ, Very nice repair, as this works precisely as it should. I use this tool in Matlab all the time when teaching multivariable calculus. D. On Feb 6, 2010, at 2:41 PM, Jae-Joon Lee wrote: > This is a known bug, and I think I fixed it in the svn. Meanwhile, you > may use the monkey patching. >

Re: [Matplotlib-users] Comet

2010-02-06 Thread David Arnold
Goyo, Sweet little function. Thanks. I still feel that a comet routine should be added to matplotlib for the reasons I've delineated. D. On Feb 6, 2010, at 1:38 PM, Goyo wrote: > Hi David, > > El sáb, 06-02-2010 a las 10:21 -0800, David Arnold escribió: >> Hi Eric, >> >> Matlab has two comm

Re: [Matplotlib-users] clabel manual

2010-02-06 Thread Jae-Joon Lee
This is a known bug, and I think I fixed it in the svn. Meanwhile, you may use the monkey patching. Insert these lines in your script (before you call clabel). Regards, -JJ import matplotlib.blocking_input as blocking_input def mouse_event_stop(self, event ): blocking_input.BlockingInput.po

Re: [Matplotlib-users] vector EPS

2010-02-06 Thread James Cloos
> "M" == Matthias Michler writes: M> I'm sorry, I'm not an expert in eps-graphics. For me the final pics M> look good and I have no idea what is different between matplotlib M> eps-files and eps-files generated somewhere else. Based exclusively on the eps you posted in this thread, MPL took

Re: [Matplotlib-users] Comet

2010-02-06 Thread Goyo
Hi David, El sáb, 06-02-2010 a las 10:21 -0800, David Arnold escribió: > Hi Eric, > > Matlab has two commands, comet and comet3, that animate the path. They are > used as in the following Matlab code: > > t=linspace(0,2*pi,2000); > x=-sin(t); > y=cos(t); > comet(x,y) You can just write the fun

Re: [Matplotlib-users] Matplotlib conflicts with IDLE

2010-02-06 Thread Pierre Raybaut
2010/2/6 Gael Varoquaux : > On Sat, Feb 06, 2010 at 11:27:50AM +0100, Pierre Raybaut wrote: > When you start having a somewhat complex set of functions that call > each other, or when you are getting failures with somebody else's code, > this is priceless. This is so useful that to debug some code

[Matplotlib-users] Surface Plot

2010-02-06 Thread Ted Kord
Hi I'd like to generate a surface plot using mplot3d. However, Z is not a function of X and/or Y. It's just a set of scalar values. So, the following doesn't work: X = np.arange(2, 102, 2) Y = np.arange(0, 15.15, 0.15) X, Y = np.meshgrid(X, Y) Z = f[2] ax.plot_surface(X, Y, Z, rstride=1, cstride=

[Matplotlib-users] MatPlotLib Usage FAQ Page Needs Some Work.

2010-02-06 Thread Wayne Watson
I can write  some fairly decent Python code. In fact, I've  recently written 400-500 lines often using numpy. There are still a number of concepts that are fuzzy. I have a modest familiarity of OOP from years ago with C++, and a few things I've picked up from Python. Five years ago, I was worki

Re: [Matplotlib-users] Comet

2010-02-06 Thread David Arnold
Hi Eric, Matlab has two commands, comet and comet3, that animate the path. They are used as in the following Matlab code: t=linspace(0,2*pi,2000); x=-sin(t); y=cos(t); comet(x,y) What then happens is the path is drawn "live", as in my python code below. This is especially useful when teaching

Re: [Matplotlib-users] Comet

2010-02-06 Thread Eric Firing
David Arnold wrote: > All, > > I am still wondering why there is no comet command in matplotlib. > > I was successful with the following: > > import matplotlib.pyplot as plt > import numpy as np > > len=200 > t=np.linspace(0,2*np.pi,len) > x=np.cos(t) > y=np.sin(t) > xd=[x[0]] > yd=[y[0]] > l,

Re: [Matplotlib-users] Matplotlib conflicts with IDLE

2010-02-06 Thread Gael Varoquaux
On Sat, Feb 06, 2010 at 11:27:50AM +0100, Pierre Raybaut wrote: > > Why not? I use Ipython on OS-X all the time, and it is fabulous, really > > fabulous. > >> > Also, I would rather stick with IDLE. It is the perfect IDE for > >> > non-CS students who shouldn't be spending their time on the >

Re: [Matplotlib-users] Uninstalling MatPlotLib (win7)? {Site-Packages?]

2010-02-06 Thread Christoph Gohlke
Depending on the version and installer used, manually remove C:\Python25\Lib\site-packages\pylab.py C:\Python25\Lib\site-packages\matplotlib C:\Python25\Lib\site-packages\mpl_toolkits C:\Python25\Lib\site-packages\matplotlib*.egg-info C:\Python25\Removematplotlib.exe C:\Python25\matplotlib-wininst

Re: [Matplotlib-users] Matplotlib conflicts with IDLE

2010-02-06 Thread Pierre Raybaut
> > Date: Fri, 05 Feb 2010 12:59:41 -0800 From: Christopher Barker > Subject: Re: [Matplotlib-users] Matplotlib > conflicts with IDLE To: matplotlib-users@lists.sourceforge.net > Message-ID: <4b6c86bd.3090...@noaa.gov> Content-Type: text/plain; > charset=ISO-8859-1; format=flowed David MacQuig