How can I adjust the settings so that the following heatmap retains most of the details?

70 ビュー (過去 30 日間)
ma Jack
ma Jack 2024 年 12 月 7 日 2:23
コメント済み: ma Jack 2024 年 12 月 24 日 7:12
How can we make the smaller values in a matrix more visible on a heatmap, without removing the large values, when the colorbar set to a logarithmic scale doesn't work?
  1 件のコメント
ma Jack
ma Jack 2024 年 12 月 7 日 9:36
Apologies for the unclear phrasing of my previous question. Here is the updated version.
As shown in the figure below, there are two heatmaps, both created using the same matrix . I really like the color scheme used in the colorbar, so I hope to keep it unchanged. The only difference between the two plots is the setting of clim, but now I want to set clim([0,1]) while still displaying detailed information similar to the clim([0,0.2]) case. How can I achieve this? I would appreciate any suggestions.

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2024 年 12 月 7 日 5:00
Please change the subject line of your post because it's not informative.
You can set the heatmap to whatever you want. If log doesn't work then change the colormap.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
  4 件のコメント
Image Analyst
Image Analyst 2024 年 12 月 23 日 15:48
OK I see that you have fixed the subject line from "Hi, everyone!" to something descriptive but you still haven't attachede your matrix in a .mat file. Have you seen Star's answer below. I'll await your attachment of your data before I attempt anything. If I don't hear from you again, we'll assume it's solved.
ma Jack
ma Jack 2024 年 12 月 24 日 7:12
Thank you very much for your patience. I feel that my issue has been resolved (I just adjusted the colorbar). Thanks again to the MATLAB help center for this active platform.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by