The thread below has a similar problem and seems to track it down to plotting log-scale and reverse direction. Seems like a Matlab plotting issue. A work around is to change the view instead of the axis direction.
To plot descending x-ticks, this works but creates the glitches above:
set(gca,'xdir','reverse')
The more robust approach is to change the axes view from [0,90] to [-180,-90] (although the above works for simple linear-linear plot, but not log-linear or log-log plots):
set(gca,'view',[-180,-90])
The old method works better because it lacks the y-tick errors, but is harder to remember.
I was hoping that flipping the view left-right would be easier in newer versions (that was the intent of adding 'xdir' and numericruler objects, but it's not in this case.
Hopefully 2019a will correct what seems to be an oversight by the Matlab programmers to handle reverse directions for log-scale cases.
Best Answer