I have been attempting to perform a 3D wireframe plot of the solution to the Lorenz equations, which is stored in the cartesian variables X, Y and Z. This is what I am presently using (unsuccessfully I might add):
# Plot the result
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import axes3d
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
plt.figure(1)
plt.xlabel('X(t)')
plt.ylabel('Y(t)')
plt.zlabel('Z(t)')
axes3d.plot_wireframe(X,Y,Z)
plt.show()
How to get this plot to work?