Eric et al,
Very nice. However, I am running the latest Enthought EPD on Mac OS X 10.4.11 and I get this:
In : clabel(cs,inline=1,fontsize=10,manual=True)
Select label locations manually using first mouse button.
End manual selection with second mouse button.
/Library/Frameworks/Python.framework/Versions/4.0.30002/lib/python2.5/site-packages/matplotlib-0.98.3.0001-py2.5-macosx-10.3-fat.egg/matplotlib/backend_bases.py:1448: DeprecationWarning: Using default event loop until function specific to this GUI is implemented
It works, adding labels whenever I click with my mouse, but I cannot end labeling. I've tried various combinations with the mouse (ctrl+click, option+click, command+click) and keyboard (Enter), to no avail.
Has anyone tried this on a Mac and got the labeling to end?
On Oct 25, 2008, at 5:21 PM, Eric Firing wrote:
David Arnold wrote:
Does Matplotlib have a form of the clabel command that uses the switch manual, as in Matlab:
Which allows the user to pick the contours to label with the mouse?
Yes, this was added recently by David Kaplan. It is in svn; I don't know whether it has appeared a released version yet.
The relevant part of the docstring, describing the keyword argument, is:
if *True*, contour labels will be placed manually using
mouse clicks. Click the first button near a contour to
add a label, click the second button (or potentially both
mouse buttons at once) to finish adding labels. The third
button can be used to remove the last label added, but
only if labels are not inline. Alternatively, the keyboard
can be used to select label locations (enter to end label
placement, delete or backspace act like the third mouse button,
and any other key will select a label location).
College of the Redwoods
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
Matplotlib-users mailing list