Moving the data tip horizontally with arrow keys
Mostrar comentarios más antiguos
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 comentarios
Geoff Hayes
el 29 de En. de 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
el 29 de En. de 2016
Respuesta aceptada
Más respuestas (1)
John BG
el 30 de En. de 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 comentario
Sven Borghardt
el 30 de En. de 2016
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!