how to create a circular heat map
22 ビュー (過去 30 日間)
古いコメントを表示
Hi,
Can you give me some hints about how I can start generating a circular heat map like this: http://www.eurekalert.org/multimedia/pub/47730.php?from=221517 or this: http://www.sciguru.com/newsitem/14791/scientists-uncover-mechanism-which-plants-inherit-epigenetic-modifications
Thanks,
Razvan
0 件のコメント
採用された回答
Image Analyst
2012 年 9 月 27 日
pcolor can do circular maps. But what does your angular dimension represent, and why is that representation any better than a rectangular representation (a rectangular image)?
7 件のコメント
Image Analyst
2012 年 9 月 28 日
If you have a 2D array of data, you can use cart2pol() to change it, but I haven't really played around with that so I'm no expert on that.
その他の回答 (1 件)
Christian Günther
2022 年 5 月 16 日
編集済み: Christian Günther
2022 年 5 月 16 日
Hello,
You can transform the Data to cartesian coordinates and use the hist3 function instead.
%polar(t,r,'+')
x = r.*cos(t);
y = r.*sin(t);
data = [x',y'];
hh3 = hist3(data, 'Nbins',[1 1]*25);
figure
image(flipud(hh3))
ax = gca;
xt = ax.XTick;
yt = ax.YTick;
ax.XTickLabel = xt*10;
set(ax, 'YTick',[0 yt], 'YTickLabel', [flip([0 yt])]*10)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!