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] 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] 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

[Matplotlib-users] clabel manual

2010-02-05 Thread David Arnold
Hi, I'm trying to get manual labeling of contours to work: import numpy as np import matplotlib.mlab as mlab import matplotlib.pyplot as plt delta = 0.025 x = np.arange(-3.0, 3.0, delta) y = np.arange(-2.0, 2.0, delta) X, Y = np.meshgrid(x, y) Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)