@@ -195,33 +195,33 @@ def test_axis_share_x_with_by(self):
195
195
ax1 , ax2 , ax3 = self .hist_df .plot .hist (column = "A" , by = "C" , sharex = True )
196
196
197
197
# share x
198
- assert ax1 . _shared_x_axes .joined (ax1 , ax2 )
199
- assert ax2 . _shared_x_axes .joined (ax1 , ax2 )
200
- assert ax3 . _shared_x_axes .joined (ax1 , ax3 )
201
- assert ax3 . _shared_x_axes .joined (ax2 , ax3 )
198
+ assert self . get_x_axis ( ax1 ) .joined (ax1 , ax2 )
199
+ assert self . get_x_axis ( ax2 ) .joined (ax1 , ax2 )
200
+ assert self . get_x_axis ( ax3 ) .joined (ax1 , ax3 )
201
+ assert self . get_x_axis ( ax3 ) .joined (ax2 , ax3 )
202
202
203
203
# don't share y
204
- assert not ax1 . _shared_y_axes .joined (ax1 , ax2 )
205
- assert not ax2 . _shared_y_axes .joined (ax1 , ax2 )
206
- assert not ax3 . _shared_y_axes .joined (ax1 , ax3 )
207
- assert not ax3 . _shared_y_axes .joined (ax2 , ax3 )
204
+ assert not self . get_y_axis ( ax1 ) .joined (ax1 , ax2 )
205
+ assert not self . get_y_axis ( ax2 ) .joined (ax1 , ax2 )
206
+ assert not self . get_y_axis ( ax3 ) .joined (ax1 , ax3 )
207
+ assert not self . get_y_axis ( ax3 ) .joined (ax2 , ax3 )
208
208
209
209
@pytest .mark .slow
210
210
def test_axis_share_y_with_by (self ):
211
211
# GH 15079
212
212
ax1 , ax2 , ax3 = self .hist_df .plot .hist (column = "A" , by = "C" , sharey = True )
213
213
214
214
# share y
215
- assert ax1 . _shared_y_axes .joined (ax1 , ax2 )
216
- assert ax2 . _shared_y_axes .joined (ax1 , ax2 )
217
- assert ax3 . _shared_y_axes .joined (ax1 , ax3 )
218
- assert ax3 . _shared_y_axes .joined (ax2 , ax3 )
215
+ assert self . get_y_axis ( ax1 ) .joined (ax1 , ax2 )
216
+ assert self . get_y_axis ( ax2 ) .joined (ax1 , ax2 )
217
+ assert self . get_y_axis ( ax3 ) .joined (ax1 , ax3 )
218
+ assert self . get_y_axis ( ax3 ) .joined (ax2 , ax3 )
219
219
220
220
# don't share x
221
- assert not ax1 . _shared_x_axes .joined (ax1 , ax2 )
222
- assert not ax2 . _shared_x_axes .joined (ax1 , ax2 )
223
- assert not ax3 . _shared_x_axes .joined (ax1 , ax3 )
224
- assert not ax3 . _shared_x_axes .joined (ax2 , ax3 )
221
+ assert not self . get_x_axis ( ax1 ) .joined (ax1 , ax2 )
222
+ assert not self . get_x_axis ( ax2 ) .joined (ax1 , ax2 )
223
+ assert not self . get_x_axis ( ax3 ) .joined (ax1 , ax3 )
224
+ assert not self . get_x_axis ( ax3 ) .joined (ax2 , ax3 )
225
225
226
226
@pytest .mark .parametrize ("figsize" , [(12 , 8 ), (20 , 10 )])
227
227
def test_figure_shape_hist_with_by (self , figsize ):
0 commit comments