Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to refine the x-axis labels in my graphs using the xtickformat command but something isn't working as expected.
For 2 digits after the decimal point, all is fine. I use
xtickformat('$%.2f');
which results in these correct axis labels:
For 3 digits after the decimal point, things are no longer as they should be. The command
xtickformat('$%.3f');
now results in the following unwanted exponential notation in the axis labels:
However, fprintf with the same format specification still gives the expected result:
fprintf("$%.3f\r", 0.001)
$0.001
Am I using xtickformat incorrectly or is this a bug?
Thanks,
Tom
Solved! Go to Solution.