How I can fix the xlabel plot?

1 visualizzazione (ultimi 30 giorni)
Rita
Rita il 27 Mag 2016
Commentato: Rita il 30 Mag 2016
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 Commenti
Walter Roberson
Walter Roberson il 27 Mag 2016
Could you show us
get(gca,'xtick')
?
Rita
Rita il 30 Mag 2016
Sorry Walter, I attached the plots .

Accedi per commentare.

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Line Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by