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 Kommentare

Could you show us
get(gca,'xtick')
?
Rita
Rita am 30 Mai 2016
Sorry Walter, I attached the plots .

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

the cyclist
the cyclist am 30 Mai 2016

1 Stimme

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

Weitere Antworten (0)

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 27 Mai 2016

Kommentiert:

am 30 Mai 2016

Community Treasure Hunt

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

Start Hunting!

Translated by