Info

This question is closed. Reopen it to edit or answer.

MATLAB does not show enough XTick labels when zooming in

1 view (last 30 days)
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 Comment
dpb
dpb on 26 Mar 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.

Answers (0)

Community Treasure Hunt

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

Start Hunting!