Skip to content

Commit 1645936

Browse files
Merge pull request #106 from martinRenou/add_3d_example
Add 3-D example
2 parents 4f18105 + 76ea675 commit 1645936

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

examples/ipympl.ipynb

+22
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,28 @@
4141
"plt.show()"
4242
]
4343
},
44+
{
45+
"cell_type": "code",
46+
"execution_count": null,
47+
"metadata": {},
48+
"outputs": [],
49+
"source": [
50+
"from mpl_toolkits.mplot3d import axes3d\n",
51+
"\n",
52+
"fig = plt.figure()\n",
53+
"ax = fig.add_subplot(111, projection='3d')\n",
54+
"\n",
55+
"# Grab some test data.\n",
56+
"X, Y, Z = axes3d.get_test_data(0.05)\n",
57+
"\n",
58+
"# Plot a basic wireframe.\n",
59+
"ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10)\n",
60+
"\n",
61+
"fig.canvas.layout.max_width = '800px'\n",
62+
"\n",
63+
"plt.show()"
64+
]
65+
},
4466
{
4567
"cell_type": "code",
4668
"execution_count": null,

0 commit comments

Comments
 (0)