How can I increase x-axis ticks by 5 while the limit is auto?
1 回表示 (過去 30 日間)
古いコメントを表示
How can I increase x-axis ticks by 5 while the limit is auto?
xticks(0:5:100)
this for example will increase it by 5 but I have to specify the limit
0 件のコメント
採用された回答
dpb
2022 年 12 月 28 日
Don't remember otomh whether it will affect the auto-range setting or not, but to solve the above issue about range, use something like
xlm=xlim; % retrieve current x limits
xticks(0:5:xlm(end)) % set by 5 over that range
You can be more clever about lower limit and rounding, etc., etc., depending on need and characteristics of the actual data.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Animation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!