I'm using Matlab R2015a, and would like to control the DatetimeTickFormat when plotting with the plotyy function. However, plotyy does not take that argument, in contrast to the regular plot function.
How can I access and set the DatetimeTickFormat via a handle or command, after plotting with plotyy?
x_datenum = linspace(1,2,10);
t_datetime = datetime(x_datenum,'ConvertFrom', 'datenum');
figure
% WORKS, BUT GIVES NO CONTROL OVER THE 'DatetimeTickFormat'
[hAxPlotyy,hLine1,hLine2] = plotyy(t_datetime,1:10,t_datetime,2:11);
% DOES NOT WORK. HOW DO I SET A SPECIFIC 'DatetimeTickFormat' AFTERWARDS?
[hAxPlotyy,hLine1,hLine2] = plotyy(hAx,t_datetime,1:10,t_datetime,2:11,'DatetimeTickFormat','HH:mm:ss');
Thank you.

hAxPlotyy.DatetimeTickFormatwork? what aboutgca.DatetimeTickFormat? - Ander BigurihAxPlotyy.XTickFormatandhAxPlotyy.TickFormat. I have been looking at all the properties for hAxPlotyy in the Inspector window, but I have yet to find a property that seems to work for this issue. EDIT: Actually there are noXTickFormatorTickFormatproperties for my hAxPlotyy handle object, from what I see in the Inspector, but I simply tried those before looking at the Inspector. - ctp20072015instead of20-jun-2015and so on.... - Ander Biguriplotyydue to how fussy it's been for me historically. I've moved to just stacking axes and avoiding it altogether (one example here). - excazaplotin the debugger it doesn't seem likeDatetimeTickFormatis actually a property of the axes or plot, but instead a different version ofplotis called that utilizes the internalmatlab.internal.datetime.makeTimePlotfunction. - excaza