This function formats colorbar ticks as dates strings.
Syntax
cbdate
cbdate(h)
cbdate(datenums)
cbdate(datenums,dateformat)
cbdate(datestrs)
cbdate('horiz')
h = cbdate(...)
Description
cbdate converts tick marks of current colorbar to date strings.
cbdate(h) specifies a colorbar handle h on which to perform cbdate. If no handle is specified, cbdate will try to find a current colorbar.
cbdate(datenums) specifies datenums to set as tick marks.
cbdate(datenums,dateformat) specifies date formatting as described in the documentation for datestring. For example, 'mmm yyyy' will print date strings as Nov 2014.
cbdate(datestrs) specifies date strings to use as colorbar ticks.
cbdate('horiz') must be declared if the colorbar is horizontal (pre-R2014b).
h = cbdate(...) returns a colorbar handle h.
Citar como
Chad Greene (2024). cbdate (https://www.mathworks.com/matlabcentral/fileexchange/48413-cbdate), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspirado por: Datetickzoom - automatically update dateticks, Zoom Adaptive Date Ticks, tlabel.m v2.6.1 (Sep 2009), Datetick with zooming panning and subplots, Datetick Zoom, Pan & Subplot with Day of Year, Intelligent Dynamic Date Ticks, dateNtick, dlim
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
cbdate/
cbdate/html/
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |