From: Patrick on 15 Jan 2010 17:35 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 15 Jan 2010 19:48 "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 15 Jan 2010 20:11 "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 18 Jan 2010 14:24 "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
|
Pages: 1 Prev: too many file open error Next: problem with fminunc: roots containing NaN or Inf |