Matplotlib - 3D Plotting
Identify the error in this code snippet for a 3D wireframe plot:
import numpy as np import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111, projection='3d') X = np.linspace(-3, 3, 10) Y = np.linspace(-3, 3, 10) Z = np.sin(X) * np.cos(Y) ax.plot_wireframe(X, Y, Z) plt.show()
