How to change the tick frequency on a timeseries x axis
古いコメントを表示
Hello can u please let me know how can I change the xticks on a time series. The ticks are displayed every 3 months, while I need one month ticks. The time series dates are real data and can not evenly distribute them. Thank you for your reply. Best, Nick
採用された回答
その他の回答 (1 件)
Nikolaos Zikas
2014 年 1 月 27 日
0 投票
3 件のコメント
Walter Roberson
2014 年 1 月 27 日
If the X axis is in serial date number, then a month is approximately 30 days, so at first pass you could use
set(gca, 'XTick', (first_datenum : 30 : last_datenum) );
There are more exact methods, of course.
Nikolaos Zikas
2014 年 2 月 18 日
abishek dixit
2017 年 11 月 19 日
can you tell exact method as well?
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!