Revision: 8187
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8187&view=rev
Author: mdboom
Date: 2010-03-10 14:14:52 +0000 (Wed, 10 Mar 2010)
Log Message:
-----------
Make LineBuilder example more complete as a stand-alone script (suggested by
David Arnold)
Modified Paths:
--------------
trunk/matplotlib/doc/users/event_handling.rst
Modified: trunk/matplotlib/doc/users/event_handling.rst
===================================================================
--- trunk/matplotlib/doc/users/event_handling.rst 2010-03-09 21:09:51 UTC
(rev 8186)
+++ trunk/matplotlib/doc/users/event_handling.rst 2010-03-10 14:14:52 UTC
(rev 8187)
@@ -111,6 +111,8 @@
Let's look a simple example of a canvas, where a simple line segment
is created every time a mouse is pressed::
+ from matplotlib import pyplot as plt
+
class LineBuilder:
def __init__(self, line):
self.line = line
@@ -132,6 +134,7 @@
line, = ax.plot([0], [0]) # empty line
linebuilder = LineBuilder(line)
+ plt.show()
The :class:`~matplotlib.backend_bases.MouseEvent` that we just used is a
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins