Skip to content
Snippets Groups Projects
Commit 46234e6f authored by François Bailly's avatar François Bailly
Browse files

[added titles in plots]

parent 431918d3
No related branches found
No related tags found
No related merge requests found
...@@ -5,13 +5,15 @@ import os ...@@ -5,13 +5,15 @@ import os
def read_tracer_file(filename): def read_tracer_file(filename):
data = np.loadtxt(filename); data = np.loadtxt(filename);
return data name = filename[8:-4]
return data, name
def plot_select_traj(traj,idxs): def plot_select_traj(traj,idxs,name):
''' plot selected idx of ND array''' ''' plot selected idx of ND array'''
nb_plots = np.size(idxs) nb_plots = np.size(idxs)
for idx in idxs: for idx in idxs:
plt.plot(traj[:,idx]) plt.plot(traj[:,idx])
plt.title(name)
plt.show() plt.show()
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment