Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ec9105

Browse files
committed
Notebook updates.
1 parent 4fe2be9 commit 7ec9105

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

notebooks/mmpl-interaction.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,14 +1626,14 @@
16261626
" plt.show()\n",
16271627
"\n",
16281628
" def press(self, event):\n",
1629-
" self.start = time.time()\n",
1629+
" self.start_time = time.time()\n",
16301630
"\n",
16311631
" def release(self, event):\n",
1632-
" self.end = time.time()\n",
1632+
" self.end_time = time.time()\n",
16331633
" self.draw_click(event)\n",
16341634
" \n",
16351635
" def draw_click(self, event):\n",
1636-
" size = 4 * (self.end - self.start) ** 2\n",
1636+
" size = 4 * (self.end_time - self.start_time) ** 2\n",
16371637
" c1 = plt.Circle([event.xdata, event.ydata], 0.002,)\n",
16381638
" c2 = plt.Circle([event.xdata, event.ydata], 0.02 * size, alpha=0.2)\n",
16391639
" event.canvas.figure.gca().add_artist(c1)\n",
@@ -3071,7 +3071,7 @@
30713071
" * mouse right click\n",
30723072
" * mouse doubleclick\n",
30733073
" \n",
3074-
"Also, mouse movement events can be a little inconsistent (this can be especially true if your browser or other application are running at a significant CPU%, causing events to be missed in matplotlib running in an IPython notebook).\n",
3074+
"Also, mouse movement events can be a little inconsistent (this can be especially true if your browser or other application is running at a significant CPU%, causing events to be missed in matplotlib running in an IPython notebook).\n",
30753075
" \n",
30763076
"However, we can still use IPython while switching to a new backend for matplotlib. To see which backends are available to you:"
30773077
]

0 commit comments

Comments
 (0)