File Exchange

image thumbnail


version (18.2 KB) by Kevin J. Delaney
Annotate a plot with both dates AND times.

1 Download

Updated 09 Jul 2010

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.

Cite As

Kevin J. Delaney (2020). dateNtick (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)


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.


MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: units.m

Inspired: cbdate

Community Treasure Hunt

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

Start Hunting!