Dear all,
I have runoff and precipitation data (as I attached), how I can achieve such a plot?
I tried this script:
histogram2(precipitation,runoff,'Normalization','count')
But it seems wrong and the range of x and y lines doesn't set between 0 to 1. The name of this plot below is bivariate frequency graph which is a histogram of precipitation and runoff.
Thank you in advance

댓글 수: 2

Do you mean something like this?
pn = normalize(precipitation, 'range');
rn = normalize(runoff, 'range');
histogram2(rn, pn)
BN
BN 2021년 10월 10일
Yes, Thank you, and why do I have blank mosaics in the plot? is there any way to force it to show zero values, instead of leaving them blank? thank you

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

 채택된 답변

Chunru
Chunru 2021년 10월 10일
편집: Chunru 2021년 10월 10일

1 개 추천

load runoff
load precipitation
precipitation = normalize(precipitation, 'range');
runoff = normalize(runoff, 'range');
histogram2(runoff, precipitation, 'Normalization', 'pdf', 'ShowEmptyBins','on'); % for probability density function

추가 답변 (0개)

카테고리

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

제품

릴리스

R2021a

질문:

BN
2021년 10월 9일

댓글:

BN
2021년 10월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by