@@ -728,35 +728,35 @@ def test_axis_share_x(self):
728728 ax1 , ax2 = df .hist (column = "height" , by = df .gender , sharex = True )
729729
730730 # 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 )
733733
734734 # 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 )
737737
738738 def test_axis_share_y (self ):
739739 df = self .hist_df
740740 ax1 , ax2 = df .hist (column = "height" , by = df .gender , sharey = True )
741741
742742 # 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 )
745745
746746 # 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 )
749749
750750 def test_axis_share_xy (self ):
751751 df = self .hist_df
752752 ax1 , ax2 = df .hist (column = "height" , by = df .gender , sharex = True , sharey = True )
753753
754754 # 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 )
757757
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 )
760760
761761 @pytest .mark .parametrize (
762762 "histtype, expected" ,
0 commit comments