Created
June 6, 2018 08:03
-
-
Save TheRochVoices/b5edb2000a6f5f29c3081b760731bc3d to your computer and use it in GitHub Desktop.
3dscatter.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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