I run into this problem: when I plot in Octave without x values, it's ok. when I add x values (which are supposed to be dates, but I don't impose the date format), it goes weird
ab = rand(96,1);
close all
figure
plot(ab)
Gives this figure:
close all
figure
plot(datenum('01-Nov-2020 00:00','dd-mmm-yyyy HH:MM'):1/24/4:datenum('01-Nov-2020 23:45','dd-mmm-yyyy HH:MM'),ab)
Gives this figure:
As you can see, the x values are all within 1 day, so I don't even know why the x tick show more than 1 day...
Anyone would have a smart explanation?

EDIT: As Tasos stated in an earlier answer, it's a "problem of OpenGL being unable to deal with the precision involved when adding small numbers to a large number".
From my point of view, that's "just" an Octave bug, MATLAB (tested with MATLAB Online) doesn't show that behaviour. It seems, Octave has problems with small
xintervals when the actualxvalue is relatively high, cf.The corresponding output is:
It seems, some
xvalues are getting "merged"!? I haven't searched in depth for reported bugs on that issue...But, to work around that issue in your case, you could try plotting the data starting at
0, and later just adapt thexticklabels:That'd be the output: