X Tick Labels skipping certain values

4 次查看(过去 30 天)
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

采纳的回答

Ameer Hamza
Ameer Hamza 2018-5-1
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 个)

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by