필터 지우기
필터 지우기

subplot: combine histogram and cdfplot with 2 different y-scales

조회 수: 1 (최근 30일)
Roman
Roman 2015년 1월 29일
Within a subplot I want to combine histogram and cumulative distribution function (cdfplot): subplot('Position',[.3 .05 .6 .2]) % a1 = axes('Parent',f); % h1=histogram(histo,numOfBins,'Normalization','probability','Orientation','vertical'); h1=histogram(histo,numOfBins,'Normalization','probability','Orientation','vertical'); % set(h1,'FaceColor','r') % set(h1.Parent,'YAxisLocation','left') hold on h2=cdfplot(histo); set(h1.Parent,'YAxisLocation','right') grid on
I need two Y-Scales (left: frequency of oberservations, right: cumulative from 0 to 1); otherwise the histogram is hardly visible. I can set one YAxisLocation but not two different ones. Any help appreciated.

답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by