def graph(self): x = np.loadtxt('log0.csv', delimiter=',', skiprows=2,usecols=[0,]) y = np.loadtxt('log0.csv', delimiter=',', skiprows=2,usecols=[1,]) plt.plot(x,y) plt.xlabel('Time') plt.ylabel('Load Value') plt.title('Logged Load\n') plt.show()
matplotlib help with reading values from CSV file
matplotlib help with reading values from CSV file
|
|
Messages In This Thread |
matplotlib help with reading values from CSV file - by cps13 - Aug-21-2017, 08:26 AM
RE: matplotlib help with reading values from CSV file - by DeaD_EyE - Aug-21-2017, 09:08 AM
RE: matplotlib help with reading values from CSV file - by cps13 - Aug-21-2017, 09:41 AM
RE: matplotlib help with reading values from CSV file - by DeaD_EyE - Aug-21-2017, 10:32 AM
RE: matplotlib help with reading values from CSV file - by cps13 - Aug-21-2017, 11:38 AM
RE: matplotlib help with reading values from CSV file - by DeaD_EyE - Aug-22-2017, 10:13 AM
RE: matplotlib help with reading values from CSV file - by andre - Aug-22-2017, 10:21 AM
|
Users browsing this thread: 2 Guest(s)