Skip to content

Instantly share code, notes, and snippets.

@mfkenson
Created April 15, 2021 11:08
Show Gist options
  • Save mfkenson/2ccbe2794ba23702e5470e75fd2cda1a to your computer and use it in GitHub Desktop.
Save mfkenson/2ccbe2794ba23702e5470e75fd2cda1a to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import numpy as np
all_points = np.array([[-0.25, 0.35, 1.29, 0.39, 1.19, 0.18, 0.22, 0.39, 0.67,-0.07],
[-0.19, -0.07, -0.1 , 0.38, 0.18, 0.3 , -0.2 , -0.08, -0.02,0.51],
[ 1.64, 1.46, 1.21, 1.18, 1.04, 1.24, 1.72, 1.43, 1.33,1.09]])
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
x = all_points[0]
y = all_points[1]
z = all_points[2]
ax.scatter(x, y, z)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment