Hi,
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'});
set(hAxes,'XTick',[])
datetick('x', 10)
-----------------------------------------------------------------------------
X0.TS is a financial time series object which I extract the dates from. I would like to do something like :
x_ticks = [datenum(1980, 07, 01) datenum(1985, 07, 01) datenum(1990, 07, 01) datenum(1995, 07, 01) datenum(2000, 07, 01) datenum(2005, 07, 01) datenum(2010, 07, 01)];
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?
Is there a simply way of doing this?
Many thanks
Comment only
01 Dec 2009
layerplot
A plot function much more powerful than plotyy
Comment only