Created
March 7, 2021 13:34
-
-
Save lemon32767/9b8c7f2e4aa5d7e0e568990985a6b352 to your computer and use it in GitHub Desktop.
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
import matplotlib.pyplot as plt | |
from mpl_toolkits.mplot3d import Axes3D | |
#from matplotlib.animation import FuncAnimation | |
import numpy as np | |
import sys | |
rng = list(map(float, sys.stdin.readlines())) | |
period = len(rng) | |
#print(rng) | |
i = 0 | |
X = [] | |
Y = [] | |
Z = [] | |
fig = plt.figure() | |
ax = fig.add_subplot(projection='3d') | |
for i in range(0, len(rng)-2): | |
x = rng[i] | |
y = rng[i+1] | |
z = rng[i+2] | |
X.append(x) | |
Y.append(y) | |
Z.append(z) | |
ax.set_xlabel("RNG[i]") | |
ax.set_ylabel("RNG[i+1]") | |
ax.set_zlabel("RNG[i+2]") | |
ax.scatter(xs=X,ys=Y,zs=Z,s=.1) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment