text: Three-Dimensional points and lines
  The most basic three-dimensional plot is a line or scatter plot created from sets of (x,y,z) triples. In analogy with more common two-dimensional plots, we can create these using the ax.plot3D and ax.scatterd3D functions. The call signature of these is nearly identical to that of their two-dimensional counterparts. Here we will plot a trigonometric spiral, along with some points drawn randomly near the line:
  import numpy as np import matplotlib.colors as col from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt #Data for a three dimensional line z = np.linspace(0, 15, 1000) x = np.sin(z) y = np.cos(z) ax.plot3D(x, y, z, 'grey') #Data for three dimensional scattered points z = 15 * np.random.random(100) x = np.sin(z) + 0.1 * np.random.randn(100) y = np.cos(z) + 0.1 * np.random.randn(100) ax.scatter3D(x, y, z, c=z, cmap='Greens') plt.show()
  Three-Dimensional contour plots
  Like two-dimensional ax.contour plots, ax.contour3D requires all the input data to be in the form of two-dimensional regular grids, with the z data evaluated at each point. Here we will') plt.show()
  Wireframes and Surface Plots using a wireframe:
  fig = plt.figure() ax = plt.axes(projection='3d') ax.plot_wireframe(x,y,z, color='black') ax.set_title('wireframe') plt.show()
  ') plt.show()
  