How to increase xticks and labels?

How to increase x-ticks and x-ticks labels here?

2 Comments

what do you mean? Increase the number of ticks or their size?
Number of ticks

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)

Products

Release

R2020a

Asked:

on 7 Jul 2020

Edited:

on 7 Jul 2020

Community Treasure Hunt

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

Start Hunting!