Matplotlib - 3D Plotting
What will the following code output?
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() ax = fig.add_subplot(111, projection='3d') X = np.arange(-5, 6, 5) Y = np.arange(-5, 6, 5) X, Y = np.meshgrid(X, Y) Z = X**2 - Y**2 ax.plot_wireframe(X, Y, Z, rstride=1, cstride=1) plt.show()
