필터 지우기
필터 지우기

how can i modify bplot.m in order to display calculated values on the boxplot

조회 수: 2 (최근 30일)
Hi,
I recently downloaded the "bplot.m" to create boxplots from several data files. However, i didn't succeed in displaying calculated values (mean, median ...) on each boxplot.
How can i modify the bplot.m to get these values visible on the corresponding boxplot?
Thank you in advance for your answers,
  댓글 수: 3
F Z
F Z 2015년 4월 22일
편집: F Z 2015년 4월 22일
Oh sorry, thought that i attached it

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

채택된 답변

Geoff Hayes
Geoff Hayes 2015년 4월 23일
Fatzo - if you wish to write the (for example) mean values, then use text to put this number where roughly the plus symbol is. For example, find the line that draws the mean symbol
hReg2(end+1) = plot(y,meanX,'+','linewidth',linewidth,'color',meanColor,'markersize',10);
and add the following to write the mean as text
text(y + 0.1,meanX,num2str(meanX));
In the above, the text is written a little to the right of the plus symbol. You should be able to do something similar for the other calculated values.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by