Created
December 27, 2019 00:44
-
-
Save gusugusu1018/135b496f2873942eb8c2c3148507bd79 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 sys | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
filename = sys.argv[1] | |
df = pd.read_csv(filename) | |
dt = 0.5 | |
i = np.arange(0,len(df)*dt,dt) | |
x = df['x'].values | |
y = df['y'].values | |
z = df['z'].values | |
plt.subplot(3,1,1) | |
plt.plot(i, x, '-', lw=2) | |
plt.xlabel('Time') | |
plt.ylabel('x') | |
#plt.title('x') | |
plt.grid(True) | |
plt.subplot(3,1,2) | |
plt.plot(i, y, '-', lw=2) | |
plt.xlabel('Time') | |
plt.ylabel('y') | |
#plt.title('y') | |
plt.grid(True) | |
plt.subplot(3,1,3) | |
plt.plot(i, z, '-', lw=2) | |
plt.xlabel('Time') | |
plt.ylabel('z') | |
#plt.title('z') | |
plt.grid(True) | |
#plt.savefig('') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment