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!