how to change, by using commands, the width of lines (whiskers, median, outliers, etc.) and axes of a boxplot?

조회 수: 33 (최근 30일)
I have plotted several boxplots, but I need to change the format of them. I'd like to make the lines of the boxplots (whiskers, quartiles, median, outliers, etc.) and their axes thicker. However, I don't know how to do that by using commands. Could you help me?

채택된 답변

Oleg Komarov
Oleg Komarov 2011년 4월 26일
Call boxplot in the foloowing way:
h = boxplot(rand(100,6));
set(h,{'linew'},{2})
or use directly:
set(findobj(gca,'type','line'),'linew',2)
To set axes width:
set(gca,'linew',2)
  댓글 수: 4
Wenxuan Liang
Wenxuan Liang 2021년 3월 29일
It only changes the line thickness of the bounding box of the plot, but not "the lines of the boxplots (whiskers, quartiles, median, outliers, etc.) "...

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

추가 답변 (0개)

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by