I just want to plot a basic time series line chart with datetimes on the x axis and temperatures on the y axis. I thought this would be easy, but I’m missing something because when I plot it when mode=‘lines’, I get:
Hi! Lines from right to left looking very strange! Is your dataframe sorted by date?Not sure, but maybe it is trying to plot data in that order as it is in dataframe?
Indeed your code is correct. The error should be in your data. We see that your plot goes “4 points by 4 points” and then go back to the beginning of your timeserie. As roman said, your dataframe is not sorted by date. What are exactly lineX and lineY?