Force ticks in subplot plots histogram

2 ビュー (過去 30 日間)
Paul MAUGER
Paul MAUGER 2021 年 6 月 8 日
編集済み: Paul MAUGER 2021 年 6 月 8 日
Ia ora na,
I've got 9 plots (histograms) in a subplot (2 loops from 1:3) with month on x-axis. I set up xticks([1:12]) for each histogram but I have 1 histogram with only 1 elements, in 1 month. It looks like this :
Can I "force" the itcks to respect the 12 months x-axis on last histogram to make the whole subplot look coherent ?
Thanks for the help.
EDIT : problem solved simply with xlim([1 12]) that I hadn't configured.

採用された回答

Steven Lord
Steven Lord 2021 年 6 月 8 日
Consider linking the axes limits using the linkaxes function.
  1 件のコメント
Paul MAUGER
Paul MAUGER 2021 年 6 月 8 日
I fixed it with xlim([1 12]) thanks to your comment and description of linkaxes function, that lightened up that my problem was "limits" and not ticks particularly.
Mauru'uru, thanks.

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by