Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: plotYY - the most annoying command in the world
Replies: 15   Last Post: Feb 24, 2010 3:48 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Paul

Posts: 8
Registered: 2/14/10
Re: plotYY - the most annoying command in the world
Posted: Feb 16, 2010 6:41 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Steven Lord" <slord@mathworks.com> wrote in message <hld8ce$o62$1@fred.mathworks.com>...
>
> "Paul " <paulsastud@hotmaill.com> wrote in message
> news:hl9phu$6oo$1@fred.mathworks.com...

> > 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
> slord@mathworks.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.

Thanks
Paul



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.