1from mpl_toolkits.mplot3d import Axes3D
2import matplotlib.pyplot as plt
3
4
5
6fig = plt.figure()
7ax = fig.add_subplot(111, projection='3d')
8
9x =[1,2,3,4,5,6,7,8,9,10]
10y =[5,6,2,3,13,4,1,2,4,8]
11z =[2,3,3,3,5,7,9,11,9,10]
12
13
14
15ax.scatter(x, y, z, c='r', marker='o')
16
17ax.set_xlabel('X Label')
18ax.set_ylabel('Y Label')
19ax.set_zlabel('Z Label')
20
21plt.show()