Skip to content

Instantly share code, notes, and snippets.

@KrisYu
Created November 1, 2021 17:05
Show Gist options
  • Save KrisYu/8d6dcc1cdf37f381655f4b61ab256044 to your computer and use it in GitHub Desktop.
Save KrisYu/8d6dcc1cdf37f381655f4b61ab256044 to your computer and use it in GitHub Desktop.
plot 3d points
# plot 3d points
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure(figsize=(4,4))
ax = fig.add_subplot(111, projection='3d')
# points np array
ax.scatter(points[:,0], points[:,1], points[:,2])
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment