Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from mpl_toolkits.mplot3d import axes3d
- import matplotlib.pyplot as plt
- fig = plt.figure() # fig - figure, yep, logical
- ax = fig.add_subplot(111, projection='3d') # three digit integer, where the first digit is the number of rows,
- # the second the number of columns, and the third the index of the subplot.
- # Projection - custom projection (rectilinear is default)
- # Grab some test data. (gotta work there, duh)
- X, Y, Z = axes3d.get_test_data(0.05) # return a tuple X, Y, Z with a tested data
- # Plot a basic wireframe.
- ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10) # rstride and cstride - step size
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement