tlabel.m v2.6.1 (Sep 2009)

Same as DATETICK but with ZOOM, PAN, LINKAXES and more!
5.8K 次下载
更新时间 2009/9/30

查看许可证

This program places dates on time axis as DATETICK and works with ZOOM and PAN as DATETICKZOOM by Christophe Lauwerys. But, it also shows the full date after zooming or panning by using the ticks and time-axis label. So, if you zoom in down to second, you won't loose "when" you are.

The input arguments are equal to those of DATETICK function, but if more than one axis handle is specified, they all will be LINKED!

Also, some other options are available, for example, the use of LOCAL LANGUAGE for the months (default), or the use of an specific date format: 'DD HH:MM SS.FFF' for example.

Besides, sometimes with DATETICK you don't get optimal results. This program (try to) fix this problem.

Just use it after some plot function with days (see DATENUM) in one of his axis (time-axis):

t = linspace(0,1) + now;
x = rand(size(t));
plot(t,x)
axis tight
tlabel % <----

Enjoy it!
Bugs reports and suggestions will be very appreciated!

引用格式

Carlos Adrian Vargas Aguilera (2024). tlabel.m v2.6.1 (Sep 2009) (https://www.mathworks.com/matlabcentral/fileexchange/19314-tlabel-m-v2-6-1-sep-2009), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2008b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.12.0.0

v2.6.1 Fixed small bug with 'middle' reference option, thanks to Ayal Anis.

1.11.0.0

v2.6 Fixed bugs with very few ticks. Thanks to Mary-Louise Timmermans.

1.10.0.0

v2.5 Fixed bug with label date and unique tick (thanks to Kelly Kearney!)

1.9.0.0

v2.4 Fixed BUG when displaying years. Fixed BUG with numeric format (thanks to Roger Parkyn!). Added 'freeticks' and 'freelimits' options.

1.8.0.0

Fixed small typo on help (version and date)

1.7.0.0

v2.3 Fixed bug with PLOTYY. Fixed bugs on parse inputs and now the 'reference' option moves the axes label to the specified point as suggested by Giles Lesser.

1.6.0.0

v2.2 Finally fixed BUG with 'keep's options. Fixed small bug with temporal figure creation. New 'none' option for 'Reference'. Fixed small BUG with Double-Click. Other minor changes.

1.4.0.0

v2.1.2 Fixed another small bug almost in the same place as the last one.

1.3.0.0

v2.1.1 Fixed small bug on new 'keep's functionality thanks to Ayal Anis!

1.2.0.0

v2.1: 'keepticks' and 'keeplimits' default's changed accordin to ticks and limits auto/manual mode.

1.1.0.0

V2.0 Rewritten code. Mayor changes with inputs and link axes. No more outputs allowed.

1.0.0.0