How to increase xticks and labels?

2 views (last 30 days)
Saurav Karmakar
Saurav Karmakar on 7 Jul 2020
Edited: jonas on 7 Jul 2020
How to increase x-ticks and x-ticks labels here?
  2 Comments

Sign in to comment.

Accepted Answer

jonas
jonas on 7 Jul 2020
Edited: jonas on 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'

More Answers (0)

Community Treasure Hunt

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

Start Hunting!