Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1.             fig = p1.figure
  2.             ax = fig.gca(projection='3d')
  3.             x, y, z = axes3d.get_test_data(0.05)
  4.             ax.plot_surface(x, y, z, rstride=8, cstride=8, alpha=0.3)
  5.             ax.contour(x, y, z, zdir='z', offset=-100)
  6.             ax.contour(x, y, z, zdir='x', offset=-40)
  7.             ax.contour(x, y, z, zdir='y', offset=40)
  8.  
  9.             ax.set_xlabel('X')
  10.             ax.set_xlim(-40, 40)
  11.             ax.set_ylabel('Y')
  12.             ax.set_ylim(-40, 40)
  13.             ax.set_zlabel('Z')
  14.             ax.set_zlim(-100, 100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement