Im trying to graph a list of tuples using matplotlib.pyplot package & Python 3 in Spyder IDE. Below is the relevant snippet of my code:
import matplotlib.pyplot as plt
def plot_test(item):
xdata = []
ydata = []
for item in list_of_epoch_total_time_tuples:
xdata = item[0]
ydata = item[3]
plt.plot(xdata,ydata)
plt.ylabel('epoch_counter')
plt.xlabel('square_error')
plt.show()
Here is my output:
I cant see the line plot. The graph is empty?
1) How can i draw this properly
2) how can I provide plot range, so there is no negative values?
Thanks
