Zoom Adaptive Date Ticks

Make date ticks adapt to zooming

您现在正在关注此提交

编者注: This was a File Exchange Pick of the Week

Note that although this piece of code still works with R2014b, the same effect can be achieved by simply using the new datetime data type as first input to plot when running R2014b or newer versions.
%
% zoomAdaptiveDateTicks('on')
% Turns on the automatic adaptation of date ticks
% to user zooming for the current figure window
%
% zoomAdaptiveDateTicks('off')
% Turns off the automatic adaptation of date ticks
% to user zooming for the current figure window
%
% zoomAdaptiveDateTicks('demo')
% Opens a demo figure window to play with

引用格式

Andreas Krahnke (2026). Zoom Adaptive Date Ticks (https://ww2.mathworks.cn/matlabcentral/fileexchange/15342-zoom-adaptive-date-ticks), MATLAB Central File Exchange. 检索时间: .

致谢

启发作品: cbdate

类别

Help CenterMATLAB Answers 中查找有关 Dates and Time 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.1.0.1

Updated license

1.1.0.0

Note for the new R2014b release.

1.0.0.0

Changed the 'demo' feature to not use the 'today' function which only ships with the Financial toolbox but the 'now' function