The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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" <> wrote in message <hld8ce$o62$>...
> "Paul " <> wrote in message
> news:hl9phu$6oo$

> > 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
> comp.soft-sys.matlab (CSSM) FAQ:

Dear Sirs, you are both gentlemen. Both methods work and also allow me to pass my own x_tick labels.


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.