Skip to content

Instantly share code, notes, and snippets.

@gusugusu1018
Created December 27, 2019 00:43
Show Gist options
  • Save gusugusu1018/f27450280256499058abadac1265068d to your computer and use it in GitHub Desktop.
Save gusugusu1018/f27450280256499058abadac1265068d to your computer and use it in GitHub Desktop.
import sys
import pandas as pd
import matplotlib as mpl
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import matplotlib.pyplot as plt
filename = sys.argv[1]
data = pd.read_csv(filename)
mpl.rcParams['legend.fontsize'] = 10
fig = plt.figure()
ax = fig.gca(projection='3d')
x = data['x'].values
y = data['y'].values
z = data['z'].values
ax.plot(x, y, z, label='path',marker='.',markersize=6.0)
ax.legend()
plt.xlabel('$x$')
plt.ylabel('$y$')
#plt.savefig('')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment