Datetick Zoom, Pan & Subplot with Day of Year

版本 1.0.0.0 (15.2 KB) 作者: David
Date formatted tick labels, auto updated when zoomed or panned with Day of Year formats added.
1.2K 次下载
更新时间 2009/11/23

查看许可证

This is an addendum to DATETICK2 which allowed time axis re-labeling when the plot is zoomed or panned. Day of Year format sets were added to the time label formats.

Example:
x = [733043:pi/10:733043+2*365];
y = sin((x-733043)/30)+rand(size(x));
figure;plot(x,y,'-o');
grid on
set(gcf,'color',[1 1 1]);
datetick2_doy('x',34);

Then zoom or pan as needed and the time axis will update the tick marks.

引用格式

David (2024). Datetick Zoom, Pan & Subplot with Day of Year (https://www.mathworks.com/matlabcentral/fileexchange/25927-datetick-zoom-pan-subplot-with-day-of-year), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Data Exploration 的更多信息
致谢

参考作品: Datetick with zooming panning and subplots

启发作品: cbdate

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0