Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eebaf8 commit 51eb482Copy full SHA for 51eb482
1 file changed
doc/users/event_handling.rst
@@ -111,6 +111,8 @@ following attributes
111
Let's look a simple example of a canvas, where a simple line segment
112
is created every time a mouse is pressed::
113
114
+ from matplotlib import pyplot as plt
115
+
116
class LineBuilder:
117
def __init__(self, line):
118
self.line = line
@@ -132,6 +134,7 @@ is created every time a mouse is pressed::
132
134
line, = ax.plot([0], [0]) # empty line
133
135
linebuilder = LineBuilder(line)
136
137
+ plt.show()
138
139
140
The :class:`~matplotlib.backend_bases.MouseEvent` that we just used is a
0 commit comments