python.plt 画三维图像

import matplotlib.pyplot as plt

fig = plt.figure(figsize=(10,6))
ax = fig.gca(projection="3d")

x=0
y=1
z=2

ax.scatter(x,y,z,zdir="z",c="blue",s=1)

plt.show()

你可能感兴趣的:(python,matplotlib)