@@ -3147,16 +3147,16 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
31473147 If True produces boxes with the Patch artist
31483148
31493149 showmeans : bool, default = False
3150- If True, will toggle one the rendering of the means
3150+ If True, will toggle on the rendering of the means
31513151
31523152 showcaps : bool, default = True
3153- If True, will toggle one the rendering of the caps
3153+ If True, will toggle on the rendering of the caps
31543154
31553155 showbox : bool, default = True
3156- If True, will toggle one the rendering of box
3156+ If True, will toggle on the rendering of the box
31573157
31583158 showfliers : bool, default = True
3159- If True, will toggle one the rendering of the fliers
3159+ If True, will toggle on the rendering of the fliers
31603160
31613161 boxprops : dict or None (default)
31623162 If provided, will set the plotting style of the boxes
@@ -3412,16 +3412,16 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
34123412 If `True`, will produce a notched box plot
34133413
34143414 showmeans : bool, default = False
3415- If `True`, will toggle one the rendering of the means
3415+ If `True`, will toggle on the rendering of the means
34163416
34173417 showcaps : bool, default = True
3418- If `True`, will toggle one the rendering of the caps
3418+ If `True`, will toggle on the rendering of the caps
34193419
34203420 showbox : bool, default = True
3421- If `True`, will toggle one the rendering of box
3421+ If `True`, will toggle on the rendering of the box
34223422
34233423 showfliers : bool, default = True
3424- If `True`, will toggle one the rendering of the fliers
3424+ If `True`, will toggle on the rendering of the fliers
34253425
34263426 boxprops : dict or None (default)
34273427 If provided, will set the plotting style of the boxes
@@ -6225,7 +6225,6 @@ def _normalize_input(inp, ename='input'):
62256225 # we return patches, so put it back in the expected order
62266226 patches .reverse ()
62276227
6228- # adopted from adjust_x/ylim part of the bar method
62296228 if orientation == 'horizontal' :
62306229 xmin0 = max (_saved_bounds [0 ]* 0.9 , minimum )
62316230 xmax = self .dataLim .intervalx [1 ]
@@ -6237,16 +6236,22 @@ def _normalize_input(inp, ename='input'):
62376236 xmin = min (xmin0 , xmin )
62386237 self .dataLim .intervalx = (xmin , xmax )
62396238 elif orientation == 'vertical' :
6240- ymin0 = max (_saved_bounds [1 ]* 0.9 , minimum )
6241- ymax = self .dataLim .intervaly [1 ]
62426239
6243- for m in n :
6244- if np .sum (m ) > 0 : # make sure there are counts
6245- ymin = np .amin (m [m != 0 ])
6246- # filter out the 0 height bins
6247- ymin = max (ymin * 0.9 , minimum ) if not input_empty else minimum
6248- ymin = min (ymin0 , ymin )
6249- self .dataLim .intervaly = (ymin , ymax )
6240+ # If norm, autoscale axis
6241+ if normed :
6242+ self .set_autoscaley_on (True )
6243+ else :
6244+ ymin0 = max (_saved_bounds [1 ]* 0.9 , minimum )
6245+ ymax = self .dataLim .intervaly [1 ]
6246+
6247+ for m in n :
6248+ if np .sum (m ) > 0 : # make sure there are counts
6249+ ymin = np .amin (m [m != 0 ])
6250+ # filter out the 0 height bins
6251+ ymin = max (ymin * 0.9 , minimum ) if not input_empty else minimum
6252+ ymin = min (ymin0 , ymin )
6253+ self .dataLim .intervaly = (ymin , ymax )
6254+
62506255
62516256 if label is None :
62526257 labels = [None ]
0 commit comments