Skip to content

Instantly share code, notes, and snippets.

@TheRochVoices
Created June 6, 2018 08:03
Show Gist options
  • Save TheRochVoices/b5edb2000a6f5f29c3081b760731bc3d to your computer and use it in GitHub Desktop.
Save TheRochVoices/b5edb2000a6f5f29c3081b760731bc3d to your computer and use it in GitHub Desktop.
3dscatter.py
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
X = [1, 3, 4, 2, 4, 2, 5, 3]
Y = [4, 5, 2, 6, 2, 2, 7, 2]
Z = [8, 5, 7, 2, 6, 7, 2, 3]
ax.scatter(X, Y, Z, c='r', marker='o')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment