X Tick Labels skipping certain values
4 views (last 30 days)
Show older comments
Hi,
I have a semilogx in which x-axis ranges from 10^3 to 10^10; I'd like to see x-tick label for all decades (10^3, 10^4, 10^5 .... 10^10), however, it only shows 10^4, 10^6, 10^8 and 10^10; while enlarging the figure solved the problem, I hope to see all labels in original figure.
Is there a way to set it?
thanks,
Kev
0 Comments
Accepted Answer
Ameer Hamza
on 1 May 2018
Use XTick property of axes object to define where you want to place ticks. Run the following
ax = gca;
ax.XTick = logspace(3, 10, 8);
It will display all the required ticks.
0 Comments
More Answers (0)
See Also
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!