Code covered by the BSD License  

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

2.0

2.0 | 1 rating Rate this file 7 Downloads (last 30 days) File Size: 15.19 KB File ID: #25927
image thumbnail

Datetick Zoom, Pan & Subplot with Day of Year

by David

 

23 Nov 2009

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

| Watch this File

File Information
Description

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.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Datetick with zooming panning and subplots

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
24 Nov 2009 Yan

There's one Pick of the Week called zoomAdaptiveDateTicks
http://www.mathworks.com/matlabcentral/fileexchange/15342

which is <20 lines and works great.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
datetick David 23 Nov 2009 10:48:54
day of year David 23 Nov 2009 10:48:55
pan David 23 Nov 2009 10:48:55
doy David 23 Nov 2009 10:48:55
zoom David 23 Nov 2009 10:48:55
subplot David 23 Nov 2009 10:48:55
time axis David 23 Nov 2009 10:48:55
aerospace David 23 Nov 2009 10:48:55

Contact us at files@mathworks.com