@@ -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 on the rendering of the means
3150+ If True, will toggle one the rendering of the means
31513151
31523152 showcaps : bool, default = True
3153- If True, will toggle on the rendering of the caps
3153+ If True, will toggle one the rendering of the caps
31543154
31553155 showbox : bool, default = True
3156- If True, will toggle on the rendering of the box
3156+ If True, will toggle one the rendering of box
31573157
31583158 showfliers : bool, default = True
3159- If True, will toggle on the rendering of the fliers
3159+ If True, will toggle one 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 on the rendering of the means
3415+ If `True`, will toggle one the rendering of the means
34163416
34173417 showcaps : bool, default = True
3418- If `True`, will toggle on the rendering of the caps
3418+ If `True`, will toggle one the rendering of the caps
34193419
34203420 showbox : bool, default = True
3421- If `True`, will toggle on the rendering of the box
3421+ If `True`, will toggle one the rendering of box
34223422
34233423 showfliers : bool, default = True
3424- If `True`, will toggle on the rendering of the fliers
3424+ If `True`, will toggle one the rendering of the fliers
34253425
34263426 boxprops : dict or None (default)
34273427 If provided, will set the plotting style of the boxes
@@ -6225,6 +6225,7 @@ 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
62286229 if orientation == 'horizontal' :
62296230 xmin0 = max (_saved_bounds [0 ]* 0.9 , minimum )
62306231 xmax = self .dataLim .intervalx [1 ]
@@ -6236,23 +6237,16 @@ def _normalize_input(inp, ename='input'):
62366237 xmin = min (xmin0 , xmin )
62376238 self .dataLim .intervalx = (xmin , xmax )
62386239 elif orientation == 'vertical' :
6240+ ymin0 = max (_saved_bounds [1 ]* 0.9 , minimum )
6241+ ymax = self .dataLim .intervaly [1 ]
62396242
6240- # If norm, autoscale axis
6241- # fixed bug for #4414
6242- if normed :
6243- self .set_autoscaley_on (True )
6244- else :
6245- ymin0 = max (_saved_bounds [1 ]* 0.9 , minimum )
6246- ymax = self .dataLim .intervaly [1 ]
6247-
6248- for m in n :
6249- if np .sum (m ) > 0 : # make sure there are counts
6250- ymin = np .amin (m [m != 0 ])
6251- # filter out the 0 height bins
6252- ymin = max (ymin * 0.9 , minimum ) if not input_empty else minimum
6253- ymin = min (ymin0 , ymin )
6254- self .dataLim .intervaly = (ymin , ymax )
6255-
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 )
62566250
62576251 if label is None :
62586252 labels = [None ]
0 commit comments