Skip to main content

plotting - BoxWhiskerChart without whiskers


I would like a chart showing the median, 1/4, 3/4 quartiles, without the whiskers or fences. how can I achieve this? I cannot figure out how to turn off both the whiskers and the fences in the result of:



BoxWhiskerChart[RandomVariate[NormalDistribution[0, 1], 100]]

but doing so would do the trick.



Answer



One way to achieve the result is to hide the whiskers and fences:


BoxWhiskerChart[RandomVariate[NormalDistribution[0, 1], 100],
{{"Fences", 0, None}, {"Whiskers", Opacity[0]}}]

enter image description here


This works, but it's a little bothersome to know the objects are hidden rather than absent.



Comments