Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions docs/Winpython_checker.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"outputs": [],
"source": [
"import warnings\n",
"warnings.filterwarnings(\"ignore\", category=DeprecationWarning)\n",
"warnings.filterwarnings(\"ignore\", category=UserWarning)\n",
"warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",
"#warnings.filterwarnings(\"ignore\", category=DeprecationWarning)\n",
"#warnings.filterwarnings(\"ignore\", category=UserWarning)\n",
"#warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",
"# warnings.filterwarnings(\"ignore\") # would silence all warnings"
]
},
Expand Down Expand Up @@ -192,27 +192,33 @@
"metadata": {},
"outputs": [],
"source": [
"# Matplotlib\n",
"# Matplotlib 3.4.1\n",
"# for more examples, see: http://matplotlib.org/gallery.html\n",
"from mpl_toolkits.mplot3d import axes3d\n",
"import matplotlib.pyplot as plt\n",
"from matplotlib import cm\n",
"\n",
"fig = plt.figure()\n",
"ax = fig.gca(projection='3d')\n",
"ax = plt.figure().add_subplot(projection='3d')\n",
"X, Y, Z = axes3d.get_test_data(0.05)\n",
"\n",
"# Plot the 3D surface\n",
"ax.plot_surface(X, Y, Z, rstride=8, cstride=8, alpha=0.3)\n",
"\n",
"# Plot projections of the contours for each dimension. By choosing offsets\n",
"# that match the appropriate axes limits, the projected contours will sit on\n",
"# the 'walls' of the graph\n",
"cset = ax.contourf(X, Y, Z, zdir='z', offset=-100, cmap=cm.coolwarm)\n",
"cset = ax.contourf(X, Y, Z, zdir='x', offset=-40, cmap=cm.coolwarm)\n",
"cset = ax.contourf(X, Y, Z, zdir='y', offset=40, cmap=cm.coolwarm)\n",
"\n",
"ax.set_xlabel('X')\n",
"ax.set_xlim(-40, 40)\n",
"ax.set_ylabel('Y')\n",
"ax.set_ylim(-40, 40)\n",
"ax.set_zlabel('Z')\n",
"ax.set_zlim(-100, 100)\n",
"\n",
"ax.set_xlabel('X')\n",
"ax.set_ylabel('Y')\n",
"ax.set_zlabel('Z')\n",
"\n",
"plt.show()"
]
},
Expand Down Expand Up @@ -952,7 +958,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.0rc1"
"version": "3.9.2"
},
"widgets": {
"state": {
Expand Down