Hi Christophe,
I'm getting the error "One or more output arguments not assigned during call" in line 39 when using datetickzoom('x'). Any clue what I'm doing wrong?
Cheers
07 Mar 2008
Carlos Adrián Vargas Aguilera
Excellent job! Congratulations Christophe! I made a modification of your function and MATLAB's to put what is left by the ticks on the date-axis.
Rajesh: if time is in X-axis you can use
a = linkprop(h, {'XTick', 'XTickLabel', 'XLim', 'YLim'});
where h are your axes handles. And to link the label too:
b = linkprop(cell2mat(get(h,'XLabel')), 'String');
Cheers
07 Jan 2008
Rajesh Rajaram
It is a very nice option to add to matlab. It works great on a single plot.
However I am not sure how I could use it when I also need to use the linkaxes option to link multiple subplots.
24 May 2007
Dan Kominsky
Very nice. This has been an annoying aspect of MatLab for some time. Thank you.
18 May 2007
Christophe Lauwerys
Concerning your remark: the switching between different dateforms is desired behavior since, in my opinion, the resolution of the ticks should increase when zooming in.
18 May 2007
F Moisy
Very useful, thanks!
One remark: it seems that datetickzoom uses the input argument dateform=0 by default, even if a second input argument is given. For instance, datetickzoom('x',1) should display labels in the form 'dd-mmm-yyyy' whatever the zoom. Instead, it automatically switches between different dateforms when zooming.
Updates
21 May 2007
Supplying the DATEFORM argument fixes the dateform when zooming in or out.