MATLAB Multiple Data Cursors in Figure

  • #1
Say I command the following simple script:

figure; plot([1:12],[1:12],[1:12],[4:15])'

1. How can I create a data cursor on one curve that automatically creates a data cursor at the same x-axis value for the other curve without having to manually create (Alt-Click, then line up) a second Datatip?

2. Is there a way to drag one Datatip left and right and have all other Datatips drag left and right by the respective amount (i.e. link the data cursors together by the x-axis)?

The reason I ask is because I have six different curves per subplot (of which I have 3) per figure (of which I have 12) and I would like to minimize the time spent creating and lining up all of the data cursors in each figure.

Feel free to answer one or both of the questions. I feel they are closely related, and if you know the answer to one, you may know the answer to the other - hence my including them in the same thread.
 

Answers and Replies

Related Threads on MATLAB Multiple Data Cursors in Figure

Replies
1
Views
963
  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
1
Views
751
  • Last Post
Replies
5
Views
5K
  • Last Post
Replies
1
Views
13K
  • Last Post
Replies
3
Views
11K
Replies
0
Views
3K
Replies
1
Views
3K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
2
Views
8K
Top