Skip to content

Commit 0e44d4c

Browse files
authored
Merge pull request #186 from martinRenou/clean_notebook
Clean Notebook example
2 parents d54b464 + 4f4a55b commit 0e44d4c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

examples/ipympl.ipynb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@
3030
"outputs": [],
3131
"source": [
3232
"# Testing matplotlib interactions with a simple plot\n",
33-
"\n",
3433
"import matplotlib.pyplot as plt\n",
3534
"import numpy as np\n",
3635
"\n",
3736
"fig = plt.figure()\n",
38-
"plt.plot(np.sin(np.linspace(0, 20, 100)))"
37+
"plt.plot(np.sin(np.linspace(0, 20, 100)));"
3938
]
4039
},
4140
{
@@ -83,8 +82,6 @@
8382
"# Plot a basic wireframe.\n",
8483
"ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10)\n",
8584
"\n",
86-
"fig.canvas.layout.max_width = '800px'\n",
87-
"\n",
8885
"plt.show()"
8986
]
9087
},
@@ -95,10 +92,6 @@
9592
"outputs": [],
9693
"source": [
9794
"# A more complex example from the matplotlib gallery\n",
98-
"\n",
99-
"import numpy as np\n",
100-
"import matplotlib.pyplot as plt\n",
101-
"\n",
10295
"np.random.seed(0)\n",
10396
"\n",
10497
"n_bins = 10\n",
@@ -160,7 +153,6 @@
160153
"from ipywidgets import HBox, FloatSlider\n",
161154
"\n",
162155
"plt.ioff()\n",
163-
"plt.clf()\n",
164156
"\n",
165157
"slider = FloatSlider(\n",
166158
" orientation='vertical',\n",

0 commit comments

Comments
 (0)