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: Pairing two different values on one plot
Replies: 19   Last Post: Apr 18, 2013 2:44 AM

Advanced Search

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

Posts: 18,038
Registered: 12/7/04
Re: Pairing two different values on one plot
Posted: Apr 16, 2013 9:51 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"dpb" <> wrote in message news:kkji6t$nub$
> On 4/16/2013 12:52 AM, PK wrote:
> ...

>> now I managed to get dates on x axis but it only shows the date not the
>> time. and the cursot tip still shows the number 7.~+005 with my data.

> doc datetick % specify format you want
> As for the cursor, don't know--there's a good possibility TMW hasn't
> implemented the conversion back to a date string from the datenum.
> doc datestr % to convert back
> Best I know is a callback routine that incorporates it but never tried
> it...

You can specify a custom display function for use by data cursors.

See the second half of the Example for how to specify the UpdateFcn. Instead
of using NUM2STR as the Example does, you'd use DATESTR.

Steve Lord
To contact Technical Support use the Contact Us link on

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.