File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4623,7 +4623,7 @@ def twinx(self, **kwargs):
4623
4623
"""
4624
4624
if not {"projection" , "polar" , "axes_class" }.intersection (kwargs ):
4625
4625
kwargs ["axes_class" ] = type (self )
4626
- ax2 = self ._make_twin_axes (sharex = self , ** kwargs )
4626
+ ax2 = self ._make_twin_axes (sharex = self , axes_class = type ( self ), ** kwargs )
4627
4627
ax2 .yaxis .tick_right ()
4628
4628
ax2 .yaxis .set_label_position ('right' )
4629
4629
ax2 .yaxis .set_offset_position ('right' )
@@ -4661,7 +4661,7 @@ def twiny(self, **kwargs):
4661
4661
"""
4662
4662
if not {"projection" , "polar" , "axes_class" }.intersection (kwargs ):
4663
4663
kwargs ["axes_class" ] = type (self )
4664
- ax2 = self ._make_twin_axes (sharey = self , ** kwargs )
4664
+ ax2 = self ._make_twin_axes (sharey = self , axes_class = type ( self ), ** kwargs )
4665
4665
ax2 .xaxis .tick_top ()
4666
4666
ax2 .xaxis .set_label_position ('top' )
4667
4667
ax2 .set_autoscaley_on (self .get_autoscaley_on ())
You can’t perform that action at this time.
0 commit comments