@@ -2354,8 +2354,8 @@ def test_draw_missing_bars(self):
2354
2354
def test_unaligned_index (self ):
2355
2355
2356
2356
f , (ax1 , ax2 ) = plt .subplots (2 )
2357
- cat .barplot (x = self .g , y = self .y , ci = "sd" , ax = ax1 )
2358
- cat .barplot (x = self .g , y = self .y_perm , ci = "sd" , ax = ax2 )
2357
+ cat .barplot (x = self .g , y = self .y , errorbar = "sd" , ax = ax1 )
2358
+ cat .barplot (x = self .g , y = self .y_perm , errorbar = "sd" , ax = ax2 )
2359
2359
for l1 , l2 in zip (ax1 .lines , ax2 .lines ):
2360
2360
assert approx (l1 .get_xydata ()) == l2 .get_xydata ()
2361
2361
for p1 , p2 in zip (ax1 .patches , ax2 .patches ):
@@ -2366,9 +2366,9 @@ def test_unaligned_index(self):
2366
2366
f , (ax1 , ax2 ) = plt .subplots (2 )
2367
2367
hue_order = self .h .unique ()
2368
2368
cat .barplot (x = self .g , y = self .y , hue = self .h ,
2369
- hue_order = hue_order , ci = "sd" , ax = ax1 )
2369
+ hue_order = hue_order , errorbar = "sd" , ax = ax1 )
2370
2370
cat .barplot (x = self .g , y = self .y_perm , hue = self .h ,
2371
- hue_order = hue_order , ci = "sd" , ax = ax2 )
2371
+ hue_order = hue_order , errorbar = "sd" , ax = ax2 )
2372
2372
for l1 , l2 in zip (ax1 .lines , ax2 .lines ):
2373
2373
assert approx (l1 .get_xydata ()) == l2 .get_xydata ()
2374
2374
for p1 , p2 in zip (ax1 .patches , ax2 .patches ):
@@ -2620,8 +2620,8 @@ def test_draw_missing_points(self):
2620
2620
def test_unaligned_index (self ):
2621
2621
2622
2622
f , (ax1 , ax2 ) = plt .subplots (2 )
2623
- cat .pointplot (x = self .g , y = self .y , ci = "sd" , ax = ax1 )
2624
- cat .pointplot (x = self .g , y = self .y_perm , ci = "sd" , ax = ax2 )
2623
+ cat .pointplot (x = self .g , y = self .y , errorbar = "sd" , ax = ax1 )
2624
+ cat .pointplot (x = self .g , y = self .y_perm , errorbar = "sd" , ax = ax2 )
2625
2625
for l1 , l2 in zip (ax1 .lines , ax2 .lines ):
2626
2626
assert approx (l1 .get_xydata ()) == l2 .get_xydata ()
2627
2627
for p1 , p2 in zip (ax1 .collections , ax2 .collections ):
@@ -2630,9 +2630,9 @@ def test_unaligned_index(self):
2630
2630
f , (ax1 , ax2 ) = plt .subplots (2 )
2631
2631
hue_order = self .h .unique ()
2632
2632
cat .pointplot (x = self .g , y = self .y , hue = self .h ,
2633
- hue_order = hue_order , ci = "sd" , ax = ax1 )
2633
+ hue_order = hue_order , errorbar = "sd" , ax = ax1 )
2634
2634
cat .pointplot (x = self .g , y = self .y_perm , hue = self .h ,
2635
- hue_order = hue_order , ci = "sd" , ax = ax2 )
2635
+ hue_order = hue_order , errorbar = "sd" , ax = ax2 )
2636
2636
for l1 , l2 in zip (ax1 .lines , ax2 .lines ):
2637
2637
assert approx (l1 .get_xydata ()) == l2 .get_xydata ()
2638
2638
for p1 , p2 in zip (ax1 .collections , ax2 .collections ):
@@ -2882,9 +2882,9 @@ def test_plot_colors(self):
2882
2882
assert p1 .get_facecolor () == p2 .get_facecolor ()
2883
2883
plt .close ("all" )
2884
2884
2885
- ax = cat .barplot (x = "g" , y = "y" , data = self .df , palette = "Set2" )
2885
+ ax = cat .barplot (x = "g" , y = "y" , data = self .df , palette = "Set2" , hue = "h" )
2886
2886
g = cat .catplot (x = "g" , y = "y" , data = self .df ,
2887
- kind = "bar" , palette = "Set2" )
2887
+ kind = "bar" , palette = "Set2" , hue = "h" )
2888
2888
for p1 , p2 in zip (ax .patches , g .ax .patches ):
2889
2889
assert p1 .get_facecolor () == p2 .get_facecolor ()
2890
2890
plt .close ("all" )
@@ -2901,8 +2901,8 @@ def test_plot_colors(self):
2901
2901
assert l1 .get_color () == l2 .get_color ()
2902
2902
plt .close ("all" )
2903
2903
2904
- ax = cat .pointplot (x = "g" , y = "y" , data = self .df , palette = "Set2" )
2905
- g = cat .catplot (x = "g" , y = "y" , data = self .df , palette = "Set2" )
2904
+ ax = cat .pointplot (x = "g" , y = "y" , data = self .df , palette = "Set2" , hue = "h" )
2905
+ g = cat .catplot (x = "g" , y = "y" , data = self .df , palette = "Set2" , hue = "h" )
2906
2906
for l1 , l2 in zip (ax .lines , g .ax .lines ):
2907
2907
assert l1 .get_color () == l2 .get_color ()
2908
2908
plt .close ("all" )
0 commit comments