Plot a heatmap from a matix
古いコメントを表示
I implemented the minutia heat map presented in this paper (page 7): https://arxiv.org/pdf/1909.09901.pdf
The result is that i have 6 matrixes and i am looking for a way to plot these as shown in the paper (same page), like this:

Basically, the low values is presented in dark, and it gets lighter when it increase.
5 件のコメント
darova
2019 年 10 月 25 日
What about pcolor?
Katie
2019 年 10 月 25 日
pcolor, image, imagesc, imshow, or heatmap could all give you results that look similar to those in the paper figure you've shared. pcolor doesn't exactly color grid locations in accordance to the value at that grid location. Instead, it's doing a bilinear interpolation based on the colors at the verticies of that grid cell. There's some discussion about the difference between pcolor and image here: https://www.mathworks.com/matlabcentral/answers/37049-removing-grid-edge-lines-in-pcolor-figure
If you're set on using heatmap to plot your matricies, you could do a 2 by 3 subplot setup with the 'gray' colormap (or a custom colormap) and with the grid turned off.
subplot(2,3,1)
heatmap(x1,'Colormap',gray,'GridVisible','off')
Ahmed Madhun
2019 年 10 月 26 日
darova
2019 年 10 月 26 日
Make range for color axis the same for each figure
min = % minimum of 6 matrix
max = % maximum of 6 matrix
caxis([min max])
Ahmed Madhun
2019 年 10 月 26 日
編集済み: Ahmed Madhun
2019 年 10 月 26 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Data Distribution Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

