Moving the data tip horizontally with arrow keys
Ältere Kommentare anzeigen
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 Kommentare
Geoff Hayes
am 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
am 29 Jan. 2016
Akzeptierte Antwort
Weitere Antworten (1)
John BG
am 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 Kommentar
Sven Borghardt
am 30 Jan. 2016
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!