Bar plot axes size using text in X axis

5 ビュー (過去 30 日間)
Abhinav Karthik Sridhar
Abhinav Karthik Sridhar 2019 年 10 月 18 日
コメント済み: Sulaymon Eshkabilov 2019 年 10 月 21 日
So, I tried plotting a bar plot for an array with 25 items. I linked it with a unique string on the X-axis, but when I plot the Bar plot - I cannot see all the unique values eventhough I tried rotating the axis to 90 deg, reduced size of gca. Attached my code!
Basically, I want a unique value seen in my x axis corresponding to the value in Y axis (display of all X axis values).
How can I achieve this?

採用された回答

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019 年 10 月 19 日
編集済み: Sulaymon Eshkabilov 2019 年 10 月 19 日
Hi
Here is the solution for x axis:
xticks(1:numel(neworder(:,1)))
F = neworder(:,1);set(gca,'FontSize',4);
xtickangle(90);
xticklabels(F);
Good luck.
  2 件のコメント
Abhinav Karthik Sridhar
Abhinav Karthik Sridhar 2019 年 10 月 21 日
Thank you!
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019 年 10 月 21 日
You are welcome!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by