Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

MATLAB does not show enough XTick labels when zooming in

조회 수: 3 (최근 30일)
Rahav
Rahav 2015년 3월 26일
마감: MATLAB Answer Bot 2021년 8월 20일
I am plotting a timeseries created as follows:
SAMPLING_FREQ = 50; % [Hz]
datetimeString = '12/04/2012 14:50';
timeVector = linspace(0, nSamples/SAMPLING_FREQ, nSamples);
tsX = timeseries(accelData(X_ROW,:)', timeVector, ...
'StartTime',datenum(datetimeString), ...
'Name',[sensorDataFile ', ' datetimeString]);
tsX.TimeInfo.StartDate = datetimeString;
datetimeFormat = 'HH:MM:SS.FFF';
tsX.TimeInfo.Format = datetimeFormat;
tsX.DataInfo.Units = 'X accel';
% Similarly for tsY and tsZ
After zooming in ML will display, e.g.
As you can see there is sufficient space to display more labels. This will become worse as you further zoom-in, which is surprising because the timeseries vector has 50 samples for each second, but ML will display less and less labels. Often just one or none.
After an online search it seems that this bug persist for many ML versions. See for example a work around I suggested here. How can this be submitted as a bug to MathWorks? Is there another solution other than the workaround I proposed in the link?
  댓글 수: 1
dpb
dpb 2015년 3월 26일
Submit bugs/enhancement requests at the "official" support site www.mathworks.com
I haven't looked but there were some references at the other link to some FileExch submittals; you tried them?
Other than that, write a callback routine that resets the ticks as you want is the other solution.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by