Data cursor accuracy with imagesc
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello everybody,
I need to increase the number of digits displaying by the data cursor when using it with imagesc. It's normally easy and can be done by editing the callback function by clicking "Edit Text Update Function" (see there for example : https://stackoverflow.com/questions/5961034/how-can-i-display-numbers-with-higher-precision-in-a-matlab-data-cursor ).
The issue is that, after changing this function, I obtain now only the values of X and Y and I have totally lost the values of "Index" and "RGB" normally displayed by the data cursor. Indeed, in the function that we change in "Edit Text Update Function", never "Index" or "RGB" appear. Do you now where the command that normally displays "Index" and "RGB" values is ? And, therefore, do you know how to solve my problem ? (ie: increasing the accuracy of X or Y without loosing the information "Index" and "RGB" normally showed by the data cursor).
I thank you in advance,
Best,
Alexandre
PS : Hereafter you can find a result of my data cursor before change and after change (I change the accuracy for displaying 6 digits instead of 4 for X and Y)


5 comentarios
Adam
el 15 de Jul. de 2019
Actually, it is possible to find the function names used by using the profiler, but the function where I assume this code is - DataCursorManager.createDatatip is in a p-code file so is not viewable code.
Respuestas (0)
Ver también
Categorías
Más información sobre Logical 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!