To make the mustache appear with minimum and maximum data values, set the whis parameter to an arbitrarily large number. In other words: boxplots = ax.boxplot(myData, whis=np.inf) .
whis kwarg - interquartile range scaling factor. The whiskers extend to external data points within whis * IQR of the quartiles.
Now that v1.4 is missing:
In matplotlib v1.4 you can say: boxplots = ax.boxplot(myData, whis=[5, 95]) set the mustache on the 5th and 95th percentiles. Similarly, you can say boxplots = ax.boxplot(myData, whis='range') to set the mustache in minutes and max.
Note. Perhaps you could change the artists contained in the boxplots dictionary returned by the ax.boxplot method, but this seems like a huge hassle
Paul h
source share