フィルターのクリア

How to change spacing in tick labels on bar graph

13 ビュー (過去 30 日間)
Chaine San Buenaventura
Chaine San Buenaventura 2016 年 11 月 28 日
コメント済み: VBBV 2022 年 11 月 13 日
My problem is that the labels are not aligned with the bar it corresponds to. Also, some labels were not displayed. Please help.
  1 件のコメント
dpb
dpb 2016 年 11 月 28 日
Show an example of your data and plot that illustrates the issue. Attach the figure as well would be good...save as .jpg say, and use the colored image button to select/attach it...we're left guessing as to what the real issue is; you can certainly use X values with bar that reflect the positions of the data.

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

採用された回答

Preethi
Preethi 2016 年 11 月 28 日
hi,
Use can use XTick and XTicklabel feature.
  3 件のコメント
Chaine San Buenaventura
Chaine San Buenaventura 2016 年 11 月 28 日
this code is for bar graphs?
VBBV
VBBV 2022 年 11 月 13 日
bar(1:5)
set(gca,'XTick',1:5)
z ={'a','b','c','d','e'}
z = 1×5 cell array
{'a'} {'b'} {'c'} {'d'} {'e'}
set(gca,'XTickLabel',z)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by