How to scale an axis on a plot in powers of 10?
63 次查看(过去 30 天)
显示 更早的评论
I have a plot of experimental data and the x-axis is scaled from
to
, but I want it to be scaled in powers of 10 from
to
. What could I do to fix this axis scaling issue?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/363433/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/363436/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/363439/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/363442/image.png)
Any help would be greatly appreciated!
0 个评论
采纳的回答
Star Strider
2020-9-20
Example —
x = logspace(5, 6, 25); % Create Data
y = rand(size(x)); % Create Data
figure
semilogx(x, y)
grid
xlim([1E2 1E6])
.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!