November 2018
Beginner to intermediate
214 pages
5h 2m
English
We will use the Matplotlib inline magic in Jupyter Notebook to create our plotting setup. Begin by making a new figure and add some axes to this figure. Add a subplot, as shown in the following code, along with the projection= '3D' keyword argument:
# Make a Axes3Dfrom mpl_toolkits.mplot3d import Axes3Dfig = plt.figure()ax = fig.add_subplot(111, projection='3d')
We see that the axes generated are indeed 3D, with an orthogonal projection shown in the following output:

Read now
Unlock full access