Great Little Programe - i've lost hours of my life playing with plotyy!!!
I have a question though. I'm using the edited version of the code as per Zhipeng Gao (25 May 2006) but i have a problem plotting the x-axis labels.
Here is my code.
----------------------------------------------------------------------
clf
plot_dates = X0_TS.dates('01-Jul-1980::01-Jan-2008');
[hAxes,hLine] = layerplot(plot_dates,fts2mat(hprx_reg.MAT5),plot_dates,fts2mat(X0_reg.IPRO),...
{'Date','Excess Hold Period Return','Difference in Belief'},...
[datenum(1980, 07, 01),datenum(2010, 07, 01); -0.2,+0.2; 0,+3],...
{'Excess Hold Period Return','Difference in Belief'});
to specify a common date range for both series. My code above works but but not properly. If I include x_ticks in set(hAxes,'XTick',[]) I get multiple labels on the x-axis?