inclined number in x-axis using scatter3 view(0,90)

2 ビュー (過去 30 日間)
SYML2nd
SYML2nd 2021 年 10 月 10 日
コメント済み: Star Strider 2021 年 10 月 15 日
I plotted an image that I created with an older version of Matlab. I plotted it in 3d with scatter3 and I plotted using:
view(0,90)
As you can see from the image the number in the x axis are inclined? In the older version they where straight
Is it possible to fix it somehow?
Thanks

採用された回答

Star Strider
Star Strider 2021 年 10 月 10 日
That is the normal behaviour for the last few releases.
One way to straighten the tick labels without having them overlap is to reduce the font size —
x = 0:20:160;
y = rand(size(x))*100;
figure
plot(x, y)
Ax = gca;
set(Ax,'XTick',x, 'XTickLabel',x);
Ax.XAxis.FontSize = 16;
xlim([min(x) max(x)])
figure
plot(x, y)
Ax = gca;
Ax = gca;
set(Ax,'XTick',x, 'XTickLabel',x);
Ax.XAxis.FontSize = 10;
Experiment to get the desired result.
.
  4 件のコメント
SYML2nd
SYML2nd 2021 年 10 月 15 日
Thank you. I was searching for this specific command.
Star Strider
Star Strider 2021 年 10 月 15 日
As always, my pleasure!
.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by