File Exchange

image thumbnail


version 1.0 (18.2 KB) by

Annotate a plot with both dates AND times.

3 Ratings

1 Download


View License

Extends "datetick.m" to include both date and time annotations. Picks convenient step sizes for you and automatically regenerates date/time annotations upon zoom or pan.
Based on original "dateNtick.m" by Peter Torrione. Package also includes "units.m" by Henning Ressing.

Comments and Ratings (5)


Pablo (view profile)

Excellent function, but it seems that doesn't save plots in 'eps' format correctly

Kevin J. Delaney

The 'keeplimits' option is already included. Type 'help dateNtick' for details.

Stan Young

Is it possible to add the 'keeplimits' options (as is available with the Normal datetick). Struggling to get precise control of x-axis limits, along with good formatting of dates.


Added some FontName and FontSize conditions to override my default "Times 12" font.


Soma (view profile)

MATLAB Release
MATLAB 7.10 (R2010a)

Inspired by: units.m

Inspired: cbdate

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video