Feb-18-2021, 03:59 PM
(This post was last modified: Feb-18-2021, 04:05 PM by SchroedingersLion.)
Greetings!
I would like to create a simple 2D plot of 270 data points.
Best,
SL
I would like to create a simple 2D plot of 270 data points.
batchnrs = list(range(0,135))*2 plt.plot(batchnrs, loss_per_batch, label="loss") plt.show()However, the x-axis in the plot does not go 0,1,...,134,0,1,...,134 (as I would like it to do) but only from 0 to 134 and the second half of y elements is simply plotted right across the first one. I would like to plot my data points as if the x-axis went from 0 to 269, so I just need to change what is portrayed on the x-ticks.
Best,
SL