105105fig .canvas .manager .set_window_title ('A Boxplot Example' )
106106fig .subplots_adjust (left = 0.075 , right = 0.95 , top = 0.9 , bottom = 0.25 )
107107
108- bp = ax1 .boxplot (data , notch = 0 , sym = '+' , vert = 1 , whis = 1.5 )
108+ bp = ax1 .boxplot (data , notch = False , sym = '+' , vert = True , whis = 1.5 )
109109plt .setp (bp ['boxes' ], color = 'black' )
110110plt .setp (bp ['whiskers' ], color = 'black' )
111111plt .setp (bp ['fliers' ], color = 'red' , marker = '+' )
@@ -221,7 +221,7 @@ def fake_bootstrapper(n):
221221fig , ax = plt .subplots ()
222222pos = np .arange (len (treatments )) + 1
223223bp = ax .boxplot (treatments , sym = 'k+' , positions = pos ,
224- notch = 1 , bootstrap = 5000 ,
224+ notch = True , bootstrap = 5000 ,
225225 usermedians = medians ,
226226 conf_intervals = conf_intervals )
227227
@@ -239,7 +239,7 @@ def fake_bootstrapper(n):
239239x = np .hstack ([- 25 , x , 25 ])
240240fig , ax = plt .subplots ()
241241
242- ax .boxplot ([x , x ], notch = 1 , capwidths = [0.01 , 0.2 ])
242+ ax .boxplot ([x , x ], notch = True , capwidths = [0.01 , 0.2 ])
243243
244244plt .show ()
245245
0 commit comments