Subplot with geobasemap and boxplot

조회 수: 7 (최근 30일)
Elizabeth Ramsey
Elizabeth Ramsey 2021년 7월 14일
편집: Elizabeth Ramsey 2021년 7월 14일
I'm trying to create a plot with a boxplot on one side and a geobasemap on the second. Is this possible?

답변 (1개)

ANKUR KUMAR
ANKUR KUMAR 2021년 7월 14일
You can do it easily using subplot.
subplot(1,2,1)
boxplot(randi(100,1,500));
subplot(1,2,2)
tsunamis = readtable('tsunamis.xlsx');
geobubble(tsunamis,'Latitude','Longitude','SizeVariable','MaxHeight')
geobasemap colorterrain
Just for the better appearance
figure
subplot(1,3,1)
boxplot(randi(100,1,500));
subplot(1,3,[2,3])
tsunamis = readtable('tsunamis.xlsx');
geobubble(tsunamis,'Latitude','Longitude','SizeVariable','MaxHeight')
geobasemap colorterrain
  댓글 수: 1
dpb
dpb 2021년 7월 14일
I don't have mapping TB to play with but I'd venture tiledlayout would work even better than subplot

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

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by