Aug-21-2017, 09:41 AM
@ DeaD_EyE
I'm sorry but I don't know how to integrate that into my code. Would this be done outside of the 'def graph' I have?
thanks
I have actually changed my code slightly to:
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()
I'm sorry but I don't know how to integrate that into my code. Would this be done outside of the 'def graph' I have?
thanks
I have actually changed my code slightly to:
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()