Why is the automatic time labeling of my plot in quarters?

3 vues (au cours des 30 derniers jours)
KAE
KAE le 3 Août 2020
Réponse apportée : KAE le 3 Août 2020
I am plotting a timeseries object* and the automatic date labelling of the x-axis is, unfortunately, in financial quarters (Q1-20, Q2-20, Q3-20, etc.). How can I chose a different time labeling, such as months?
*I know timeseries are outdated but I have to use them to pass time info into the controlchart functions.

Réponse acceptée

KAE
KAE le 3 Août 2020
It turns out the time variable is a datenum, and when you are plotting them, you can choose the time labelling format using datetick, such as:
datetick('x', 6); % Label with month/year

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by