필터 지우기
필터 지우기

How to draw % data using grid or heat map

조회 수: 5 (최근 30일)
Redwood
Redwood 2021년 7월 8일
댓글: Redwood 2021년 7월 8일
Dear Matlab experts,
I would like to draw heat map with % data.
For example...50, 20, 15, 10, 5
I know how to make pie chart, but I would like to make a squre shape instead of a round shape.
I attached some example below. Is it possible to make this map using Matlab?
Thank you very much in advance.
Sincerely yours,
J1
I
  댓글 수: 2
Akira Agata
Akira Agata 2021년 7월 8일
How about using a following treemap function?
Redwood
Redwood 2021년 7월 8일
Dear Akira,
Thank you very much for your response.
I try to make treemap using Matlab below, but Matlab cannot recognize "treemap".
If you have any idea how to fix this, then please let me know.
Thank you very much in advacne.
Sincerely yours,
J1
data = ...{'No1',50;'No2',20;'No3',15;'No4',10;'No5',5;};
colors = ones(10,3);
rectangles = treemap([data{:,2}]);
labels = data(:,1);
cla
plotRectangles(rectangles,labels,colors)
outline(rectangles)
axis([-0.01 1.01 -0.01 1.01])
title('The biggest pie')

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Thermal Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by