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 [6]: 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 warnings.warn(str,DeprecationWarning) 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? Thanks. D. On Oct 25, 2008, at 5:21 PM, Eric Firing wrote: > David Arnold wrote: >> All, >> Does Matplotlib have a form of the clabel command that uses the >> switch manual, as in Matlab: >> [c,h]=contour(x,y,z); >> clabel(c,h,'manual') >> 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: > > *manual*: > 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). > > Eric > >> David Arnold >> College of the Redwoods >> http://msemac.redwoods.edu/~darnold/index.php >> --------------------------------------------------------------------- >> ---- >> 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 >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------- 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 http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users