How I can fix the xlabel plot?

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 件のコメント

Walter Roberson
Walter Roberson 2016 年 5 月 27 日
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')

1 件のコメント

Rita
Rita 2016 年 5 月 30 日
Thanks The cyclist.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating, 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