how can i change the xlim in bar?

11 ビュー (過去 30 日間)
Rt Ro
Rt Ro 2019 年 5 月 3 日
コメント済み: Rt Ro 2019 年 5 月 3 日
The x values change from 1970 to 2006, the below figure is between data and the years. (for each year I have 5 bars).
I want to show all years or each two years (1970, 1973,1975,...) on the x axis . how can I do it?
untitled.jpg

採用された回答

Rik
Rik 2019 年 5 月 3 日
You mean like this?
set(gca,'XTick',ceil(1970:2.5:2005))
  1 件のコメント
Rt Ro
Rt Ro 2019 年 5 月 3 日
Thank you it works well.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by