it is not possible have a single unordered axes in MATLAB.
numeric axes are always sorted by numeric value. datetime axes are always sorted by increasing nanoseconds. duration axes are always sorted by increasing nanoseconds. polaraxes are always sorted by increasing radius or angle. I do not recall at the moment what mapping axes are sorted on, but they are sorted.
categorical axes are always sorted by internal numeric code associated with the category, which does not have to follow alphabetical order (but would be alphabetical by default).
You have two choices:
- you can use multiple axes. You would use this if it was important that datatips gave the correct output without having to program the datatip behaviour. You might need to link the axes zoom and pan and resize callbacks to get sensible behavior as the window on to the data changes.
- you can use a sorted axes in which you manipulate the text labels associated with the axes. If you also want datatips to work then you will need to program their behavior.