Data cursor accuracy with imagesc
6 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Adam
2019 年 7 月 15 日
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.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!