Effacer les filtres
Effacer les filtres

How to increase xticks and labels?

3 vues (au cours des 30 derniers jours)
Saurav Karmakar
Saurav Karmakar le 7 Juil 2020
Modifié(e) : jonas le 7 Juil 2020
How to increase x-ticks and x-ticks labels here?
  2 commentaires
jonas
jonas le 7 Juil 2020
what do you mean? Increase the number of ticks or their size?
Saurav Karmakar
Saurav Karmakar le 7 Juil 2020
Number of ticks

Connectez-vous pour commenter.

Réponse acceptée

jonas
jonas le 7 Juil 2020
Modifié(e) : jonas le 7 Juil 2020
You can specify the xticks manually. For example:
ax = gca;
dist = days(10);
ax.XTick = date(1):dist:date(end)
You may want to change the format from MMM to something else though.
For example:
ax.XAxis.TickLabelFormat = 'MMM dd'

Plus de réponses (0)

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by