Code covered by the BSD License  

Highlights from
Datetick Zoom, Pan & Subplot with Day of Year

2.0 | 1 rating Rate this file 10 Downloads (last 30 days) File Size: 15.2 KB File ID: #25927 Version: 1.0
image thumbnail

Datetick Zoom, Pan & Subplot with Day of Year


David (view profile)


Date formatted tick labels, auto updated when zoomed or panned with Day of Year formats added.

| Watch this File

File Information

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.

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

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


Datetick With Zooming Panning And Subplots inspired this file.

This file inspired Cbdate.

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
24 Nov 2009 Yan

Yan (view profile)

There's one Pick of the Week called zoomAdaptiveDateTicks

which is <20 lines and works great.

Contact us