Change how numbers are visualized with imagesc?
4 ビュー (過去 30 日間)
古いコメントを表示
Hi, with
figure,imagesc
I visualize the scale like "scale"
but I want to visualize with "0.02, 0.015, 0.01 ..." without "x10^3"
What can I do?
0 件のコメント
回答 (1 件)
Image Analyst
2023 年 6 月 11 日
Multiply your image by 1000 before passing in to imagesc. A side effect though is that the pixel values reported by mousing around over the image will also be 1000 times as big (rather than the original values) if you called impixelinfo, but maybe that will be OK. I prefer imshow to imagesc since it doesn't apply some (probably undesired) colormap by default.
scaledImage = originalImage * 1000;
imshow(scaledImage, []);
colormap('turbo');
colorbar;
impixelinfo
2 件のコメント
Image Analyst
2023 年 6 月 11 日
Make up your own custom labels. See the documentation
help colorbar properties
Set TickLabelsMode and TickLabels properties for the colorbar.
参考
カテゴリ
Help Center および File Exchange で Orange についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!