Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- import numpy as np
- def range(n, vmin, vmax):
- return (vmax - vmin)*np.random.rand(n) + vmin
- fig = plt.figure()
- ax = fig.add_subplot(projection='3d')
- n = 10
- for m, zlow, zhigh in [('o', -50, -25)]:
- xs = range(n, 23, 32)
- ys = range(n, 0, 100)
- zs = range(n, zlow, zhigh)
- ax.scatter(xs, ys, zs, marker=m)
- fig = plt.figure()
- fig.add_subplot(111)
- plt.scatter(xs, ys)
- ax.set_xlabel('X')
- ax.set_ylabel('Y')
- ax.set_zlabel('Z')
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement