@@ -3538,13 +3538,7 @@ def _make_paper_spanning_shape(self, direction, shape, none_if_no_trace=True):
3538
3538
return shape
3539
3539
3540
3540
def _process_multiple_paper_spanning_shapes (
3541
- self ,
3542
- shape_args ,
3543
- row ,
3544
- col ,
3545
- direction ,
3546
- exclude_subplots_without_data = True ,
3547
- ** kwargs
3541
+ self , shape_args , row , col , direction , exclude_empty_subplots = True , ** kwargs
3548
3542
):
3549
3543
"""
3550
3544
Add a shape or multiple shapes and call _make_paper_spanning_shape on
@@ -3563,17 +3557,15 @@ def _process_multiple_paper_spanning_shapes(
3563
3557
self ._make_paper_spanning_shape (
3564
3558
direction ,
3565
3559
self .layout ["shapes" ][n ],
3566
- none_if_no_trace = exclude_subplots_without_data ,
3560
+ none_if_no_trace = exclude_empty_subplots ,
3567
3561
)
3568
3562
for n in range (n_shapes_before , n_shapes_after )
3569
3563
],
3570
3564
)
3571
3565
)
3572
3566
self .layout ["shapes" ] = self .layout ["shapes" ][:n_shapes_before ] + new_shapes
3573
3567
3574
- def add_vline (
3575
- self , x , row = None , col = None , exclude_subplots_without_data = True , ** kwargs
3576
- ):
3568
+ def add_vline (self , x , row = None , col = None , exclude_empty_subplots = True , ** kwargs ):
3577
3569
"""
3578
3570
Add a vertical line to a plot or subplot that extends infinitely in the
3579
3571
y-dimension.
@@ -3599,14 +3591,12 @@ def add_vline(
3599
3591
row ,
3600
3592
col ,
3601
3593
"vertical" ,
3602
- exclude_subplots_without_data = exclude_subplots_without_data ,
3594
+ exclude_empty_subplots = exclude_empty_subplots ,
3603
3595
** kwargs
3604
3596
)
3605
3597
return self
3606
3598
3607
- def add_hline (
3608
- self , y , row = None , col = None , exclude_subplots_without_data = True , ** kwargs
3609
- ):
3599
+ def add_hline (self , y , row = None , col = None , exclude_empty_subplots = True , ** kwargs ):
3610
3600
"""
3611
3601
Add a horizontal line to a plot or subplot that extends infinitely in the
3612
3602
x-dimension.
@@ -3632,13 +3622,13 @@ def add_hline(
3632
3622
row ,
3633
3623
col ,
3634
3624
"horizontal" ,
3635
- exclude_subplots_without_data = exclude_subplots_without_data ,
3625
+ exclude_empty_subplots = exclude_empty_subplots ,
3636
3626
** kwargs
3637
3627
)
3638
3628
return self
3639
3629
3640
3630
def add_vrect (
3641
- self , x0 , x1 , row = None , col = None , exclude_subplots_without_data = True , ** kwargs
3631
+ self , x0 , x1 , row = None , col = None , exclude_empty_subplots = True , ** kwargs
3642
3632
):
3643
3633
"""
3644
3634
Add a rectangle to a plot or subplot that extends infinitely in the
@@ -3667,13 +3657,13 @@ def add_vrect(
3667
3657
row ,
3668
3658
col ,
3669
3659
"vertical" ,
3670
- exclude_subplots_without_data = exclude_subplots_without_data ,
3660
+ exclude_empty_subplots = exclude_empty_subplots ,
3671
3661
** kwargs
3672
3662
)
3673
3663
return self
3674
3664
3675
3665
def add_hrect (
3676
- self , y0 , y1 , row = None , col = None , exclude_subplots_without_data = True , ** kwargs
3666
+ self , y0 , y1 , row = None , col = None , exclude_empty_subplots = True , ** kwargs
3677
3667
):
3678
3668
"""
3679
3669
Add a rectangle to a plot or subplot that extends infinitely in the
@@ -3702,7 +3692,7 @@ def add_hrect(
3702
3692
row ,
3703
3693
col ,
3704
3694
"horizontal" ,
3705
- exclude_subplots_without_data = exclude_subplots_without_data ,
3695
+ exclude_empty_subplots = exclude_empty_subplots ,
3706
3696
** kwargs
3707
3697
)
3708
3698
return self
0 commit comments