File tree 3 files changed +4
-3
lines changed
galleries/users_explain/figure
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,8 @@ is created every time a mouse is pressed::
251
251
252
252
def __call__(self, event):
253
253
print('click', event)
254
- if event.inaxes!=self.line.axes: return
254
+ if event.inaxes != self.line.axes:
255
+ return
255
256
self.xs.append(event.xdata)
256
257
self.ys.append(event.ydata)
257
258
self.line.set_data(self.xs, self.ys)
Original file line number Diff line number Diff line change 10
10
Interactive figures
11
11
===================
12
12
13
- When working with data, interactivity can be invaluable. The pan/zoom and
13
+ Interactivity can be invaluable when exploring plots . The pan/zoom and
14
14
mouse-location tools built into the Matplotlib GUI windows are often sufficient, but
15
15
you can also use the event system to build customized data exploration tools.
16
16
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ which would poll for new data and update the figure at 1Hz.
236
236
237
237
.. _spin_event_loop :
238
238
239
- Explicitly spinning the event Loop
239
+ Explicitly spinning the event loop
240
240
----------------------------------
241
241
242
242
.. autosummary ::
You can’t perform that action at this time.
0 commit comments