Moving the data tip horizontally with arrow keys
Show older comments
Dear all,
I have the following problem. I am plotting a 2D-Matrix with
figure
pcolor(int_counts)
Now, I wrote a small script the redraws a plot every time the data tip in this pcolor plot is changed. Fair enough, it works. The problem now is, that I would like to use the arrow keys on my keyboard to move around the data tip. This works very nice with the up- and down-arrow (vertical direction in the plot), but it doesn't work out for the left- and right-arrow. When I try to use them both the vertical and the horizontal position in the plot change.
Does somebody know how I can solve the problem?
Best regards!
2 Comments
Geoff Hayes
on 29 Jan 2016
Sven - can you post your code showing how the up and down arrows are used to move the data tip? And how you incorporated the left and right arrows? A small example may be necessary to show us what you have tried.
Sven Borghardt
on 29 Jan 2016
Accepted Answer
More Answers (1)
John BG
on 30 Jan 2016
remove
axis ij
this command is useful when working on images that have [0,0] on top left corner of the image, which is not the case here, is it?
does it help? please click on thumbs up thanks in advance
John
1 Comment
Sven Borghardt
on 30 Jan 2016
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!