How to increase xticks and labels?

1 visualizzazione (ultimi 30 giorni)
Saurav Karmakar
Saurav Karmakar il 7 Lug 2020
Modificato: jonas il 7 Lug 2020
How to increase x-ticks and x-ticks labels here?
  2 Commenti
jonas
jonas il 7 Lug 2020
what do you mean? Increase the number of ticks or their size?
Saurav Karmakar
Saurav Karmakar il 7 Lug 2020
Number of ticks

Accedi per commentare.

Risposta accettata

jonas
jonas il 7 Lug 2020
Modificato: jonas il 7 Lug 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'

Più risposte (0)

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by