How can I display the value at a point in a figure with mouse (touch screen laptop)
18 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
George Hine
el 28 de Jun. de 2019
In my previous experience, if you displayed a matrix as a figure using imagesc, a mouse click on the image would show the value of the point clicked. This is not working in my ThinkPad T480s. I wonder if it's because it has a touch screen. When I use a mouse, mouse clicks don't do anything to the axes element. If I use the touch screen, i can move the figure axes around like with the grab tool.
Being able to click on an image and see the value is very useful to me. How can I enable it?
0 comentarios
Respuesta aceptada
Rik
el 28 de Jun. de 2019
Editada: Rik
el 28 de Jun. de 2019
A=randi(127,100,150);A=uint8(A);
figure(1),clf(1)
imagesc(A)
datacursormode on
Note that axes interactions changed in R2018b, so there might be some undocumented effects of that, depending on the release you're using on the two computers you describe.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!