how to create a circular heat map
조회 수: 73 (최근 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에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!