Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

MATLAB does not show enough XTick labels when zooming in

4 Ansichten (letzte 30 Tage)
Rahav
Rahav am 26 Mär. 2015
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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 Kommentar
dpb
dpb am 26 Mär. 2015
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.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by