How to fit multiple distribution on a histogram without normalizing the histogram?

조회 수: 2 (최근 30일)
I have to put normal, lognormal and weibull distribution over a histogram of the dataset but once I achieve the 3 plots my Ylimit chnages. So please help me in getting those distribution over the histogram without its Ylimit being altered. Thank you

채택된 답변

Jeff Miller
Jeff Miller 2022년 2월 7일
Probably simplest just to plot everything and then use ylim to reset the Y axis limits at the end to whatever you want, something like
ylim([0 1]); % set lower & upper limits to specified values
  댓글 수: 2
Pawan Kumar
Pawan Kumar 2022년 2월 9일
Thanks for your response. I tried doing this but this is only resulting in my histogram getting smaller nearly touching the xaxis.
Jeff Miller
Jeff Miller 2022년 2월 9일
Hard to say exactly what is wrong without seeing your data and code. You should be using 'normalization','pdf' in the histogram command to make it comparable to the pdf's of the plotted distribution, so this could be the problem if you are using some other normalization.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by