@@ -728,35 +728,35 @@ def test_axis_share_x(self):
728
728
ax1 , ax2 = df .hist (column = "height" , by = df .gender , sharex = True )
729
729
730
730
# share x
731
- assert ax1 . _shared_x_axes .joined (ax1 , ax2 )
732
- assert ax2 . _shared_x_axes .joined (ax1 , ax2 )
731
+ assert self . get_x_axis ( ax1 ) .joined (ax1 , ax2 )
732
+ assert self . get_x_axis ( ax2 ) .joined (ax1 , ax2 )
733
733
734
734
# don't share y
735
- assert not ax1 . _shared_y_axes .joined (ax1 , ax2 )
736
- assert not ax2 . _shared_y_axes .joined (ax1 , ax2 )
735
+ assert not self . get_y_axis ( ax1 ) .joined (ax1 , ax2 )
736
+ assert not self . get_y_axis ( ax2 ) .joined (ax1 , ax2 )
737
737
738
738
def test_axis_share_y (self ):
739
739
df = self .hist_df
740
740
ax1 , ax2 = df .hist (column = "height" , by = df .gender , sharey = True )
741
741
742
742
# share y
743
- assert ax1 . _shared_y_axes .joined (ax1 , ax2 )
744
- assert ax2 . _shared_y_axes .joined (ax1 , ax2 )
743
+ assert self . get_y_axis ( ax1 ) .joined (ax1 , ax2 )
744
+ assert self . get_y_axis ( ax2 ) .joined (ax1 , ax2 )
745
745
746
746
# don't share x
747
- assert not ax1 . _shared_x_axes .joined (ax1 , ax2 )
748
- assert not ax2 . _shared_x_axes .joined (ax1 , ax2 )
747
+ assert not self . get_x_axis ( ax1 ) .joined (ax1 , ax2 )
748
+ assert not self . get_x_axis ( ax2 ) .joined (ax1 , ax2 )
749
749
750
750
def test_axis_share_xy (self ):
751
751
df = self .hist_df
752
752
ax1 , ax2 = df .hist (column = "height" , by = df .gender , sharex = True , sharey = True )
753
753
754
754
# share both x and y
755
- assert ax1 . _shared_x_axes .joined (ax1 , ax2 )
756
- assert ax2 . _shared_x_axes .joined (ax1 , ax2 )
755
+ assert self . get_x_axis ( ax1 ) .joined (ax1 , ax2 )
756
+ assert self . get_x_axis ( ax2 ) .joined (ax1 , ax2 )
757
757
758
- assert ax1 . _shared_y_axes .joined (ax1 , ax2 )
759
- assert ax2 . _shared_y_axes .joined (ax1 , ax2 )
758
+ assert self . get_y_axis ( ax1 ) .joined (ax1 , ax2 )
759
+ assert self . get_y_axis ( ax2 ) .joined (ax1 , ax2 )
760
760
761
761
@pytest .mark .parametrize (
762
762
"histtype, expected" ,
0 commit comments