From: Patrick on
I'm using the boxplot function, which is generally pretty user-friendly, but am wondering if there's a way to control how the whiskers look. The default line style is a dashed line - do these breaks in the line represent anything statistically or is it just the chosen line style? And can this be changed, e.g. to solid lines? thicker lines?
Thanks for any input you might have.
From: Oleg Komarov on
"Patrick "
> I'm using the boxplot function, which is generally pretty user-friendly, but am wondering if there's a way to control how the whiskers look. The default line style is a dashed line - do these breaks in the line represent anything statistically or is it just the chosen line style? And can this be changed, e.g. to solid lines? thicker lines?
> Thanks for any input you might have.
Not really user friendly but still...
set(findobj(gcf,'LineStyle','--'),'LineStyle','-')

Oleg
From: Oleg Komarov on
"Oleg Komarov"
> "Patrick "
> > I'm using the boxplot function, which is generally pretty user-friendly, but am wondering if there's a way to control how the whiskers look. The default line style is a dashed line - do these breaks in the line represent anything statistically or is it just the chosen line style? And can this be changed, e.g. to solid lines? thicker lines?
> > Thanks for any input you might have.
> Not really user friendly but still...
> set(findobj(gcf,'LineStyle','--'),'LineStyle','-')
>
> Oleg
The previous syntax sets all lines of a plot to solid.
I think this is more appropriate. This way you're setting only the whiskers lines...

X = randn(100,25);
boxplot(X)
set(findobj(gcf,'-regexp','Tag','\w*Whisker'),'LineStyle','-')

Oleg
From: Patrick on
"Oleg Komarov" <oleg.komarovRemove.this(a)hotmail.it> wrote in message <hir3n8$kbv$1(a)fred.mathworks.com>...
> "Oleg Komarov"
> > "Patrick "
> > > I'm using the boxplot function, which is generally pretty user-friendly, but am wondering if there's a way to control how the whiskers look. The default line style is a dashed line - do these breaks in the line represent anything statistically or is it just the chosen line style? And can this be changed, e.g. to solid lines? thicker lines?
> > > Thanks for any input you might have.
> > Not really user friendly but still...
> > set(findobj(gcf,'LineStyle','--'),'LineStyle','-')
> >
> > Oleg
> The previous syntax sets all lines of a plot to solid.
> I think this is more appropriate. This way you're setting only the whiskers lines...
>
> X = randn(100,25);
> boxplot(X)
> set(findobj(gcf,'-regexp','Tag','\w*Whisker'),'LineStyle','-')
>
> Oleg

Thanks, Oleg. Since the whiskers are the only dashed lines on my plot, your first answer is all I need to change their line style.
Cheers,
Patrick