How to paste multiple heatmaps together/in 1 figure

Hi,
I've created three heatmaps and I was just wondering if it was possible for me to combine them together or into 1 figure. I included some pictures for reference, thanks.

 채택된 답변

Voss
Voss 2022년 7월 13일
You can use subplot (or tiledlayout)
figure()
subplot(3,1,1)
heatmap(rand(3,5))
subplot(3,1,2)
heatmap(rand(3,5))
subplot(3,1,3)
heatmap(rand(3,5))

추가 답변 (1개)

Walter Roberson
Walter Roberson 2022년 7월 13일

0 개 추천

You can pass a figure or axes to heatmap as the first parameter. If you pass an axes then it the children might get completely replaced.
The output of heatmap() is a special object that acts like an axes.

카테고리

도움말 센터File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

제품

릴리스

R2022a

태그

질문:

2022년 7월 13일

답변:

2022년 7월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by