"Steven Lord" <email@example.com> wrote in message <firstname.lastname@example.org>... > > "Paul " <email@example.com> wrote in message > news:firstname.lastname@example.org... > > Hi, > > Hopefully someone can help me here because i'm lost for fixing this. I'm > > trying to plot two time series at shared x-values but with different > > scales on the y-axis. I extract both time series from a financial time > > series object since plotyy doesn't like this construct. > > My problem is that I can't get the dates on the x-axis to appear properly. > > I simply want to print a series of common dates and then set the Xlim. > > *snip* > > > datetick('x',10,'keepticks') > > Call DATETICK twice, passing one of the handles to each axes (which you > obtained from the output of PLOTYY) into each call. > > datetick(ax(1), 'x', 10, 'keepticks') > datetick(ax(2), 'x', 10, 'keepticks') > > -- > Steve Lord > email@example.com > comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ >
Dear Sirs, you are both gentlemen. Both methods work and also allow me to pass my own x_tick labels.