I need to plot 10 traces with different color in python, every trace is in a different file with the same extension .numpy., I mean by that that I have 10 files:
trace1
trace2
trace3
trace4
trace5
trace6
trace7
trace8
trace9
trace10
This is my code to plot just one trace:
import matplotlib.pyplot as plt
import numpy as np
dataArray= np.load(r'/home/user/trace1.npy')
print(dataArray)
plt.plot(dataArray.T)
plt.show()
According to you must I put all of them in the same file? In order to plot them?
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…