How to increase xticks and labels?

1 Ansicht (letzte 30 Tage)
Saurav Karmakar
Saurav Karmakar am 7 Jul. 2020
Bearbeitet: jonas am 7 Jul. 2020
How to increase x-ticks and x-ticks labels here?
  2 Kommentare
jonas
jonas am 7 Jul. 2020
what do you mean? Increase the number of ticks or their size?
Saurav Karmakar
Saurav Karmakar am 7 Jul. 2020
Number of ticks

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

jonas
jonas am 7 Jul. 2020
Bearbeitet: jonas am 7 Jul. 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'

Weitere Antworten (0)

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by