I have this plot
and I would like the x-axis start at Jan and end in Jan (1 whole year)I have used this
datetick('x','mmm','keepticks')
but the plot changed to this
which y axis does not start from zero and x axis start from april instead of Jan. How I can fix this?
Thanks for any comment.

댓글 수: 2

Could you show us
get(gca,'xtick')
?
Rita
Rita 2016년 5월 30일
Sorry Walter, I attached the plots .

댓글을 달려면 로그인하십시오.

 채택된 답변

the cyclist
the cyclist 2016년 5월 30일

1 개 추천

I can't say for sure without knowing the answer to Walter's question, but try this:
datetick('x','mmm','keepticks','keeplimits')

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

질문:

2016년 5월 27일

댓글:

2016년 5월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by