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: Datacursormode for GUI with two Axes
Replies: 1   Last Post: Dec 30, 2012 2:56 AM

Advanced Search

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

Posts: 11
Registered: 12/30/12
Datacursormode for GUI with two Axes
Posted: Dec 30, 2012 1:12 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello everyone,

I have a GUI with two axes, which are supposed to display two different plots, and I will be using datacursormode to get the information for the plots. I understand it is not possible to enable datacursormode for only one of the axes in my GUI, however, as suggested in previous questions, I was going to use ancestor function to figure out which one of the axes has been clicked on. Below is my general code:


'SnapToDataVertex','on', ...
p = ancestor(dcmObj,'axes')

however p is returning an empty matrix (p=[]). I'd greatly appreciate your suggestions.

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.