Info

此问题已关闭。 请重新打开它进行编辑或回答。

MATLAB does not show enough XTick labels when zooming in

1 次查看(过去 30 天)
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