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

조회 수: 1 (최근 30일)
KAE
KAE 2020년 8월 3일
답변: KAE 2020년 8월 3일
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.

채택된 답변

KAE
KAE 2020년 8월 3일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by