@@ -605,8 +605,8 @@ def set_xlim3d(self, left=None, right=None, emit=True, auto=False, **kw):
605
605
left , right = left
606
606
607
607
self ._process_unit_info (xdata = (left , right ))
608
- left = self ._validate_axis_limits (left , self .convert_xunits )
609
- right = self ._validate_axis_limits (right , self .convert_xunits )
608
+ left = self ._validate_converted_limits (left , self .convert_xunits )
609
+ right = self ._validate_converted_limits (right , self .convert_xunits )
610
610
611
611
old_left , old_right = self .get_xlim ()
612
612
if left is None :
@@ -657,14 +657,14 @@ def set_ylim3d(self, bottom=None, top=None, emit=True, auto=False, **kw):
657
657
bottom , top = bottom
658
658
659
659
self ._process_unit_info (ydata = (bottom , top ))
660
- if bottom is not None :
661
- bottom = self .convert_yunits (bottom )
662
- if top is not None :
663
- top = self .convert_yunits (top )
660
+ bottom = self ._validate_converted_limits (bottom , self .convert_yunits )
661
+ top = self ._validate_converted_limits (top , self .convert_yunits )
664
662
665
663
old_bottom , old_top = self .get_ylim ()
666
- bottom = self ._validate_axis_limits (bottom , self .convert_yunits )
667
- top = self ._validate_axis_limits (top , self .convert_yunits )
664
+ if bottom is None :
665
+ bottom = old_bottom
666
+ if top is None :
667
+ top = old_top
668
668
669
669
if top == bottom :
670
670
warnings .warn (('Attempting to set identical bottom==top results\n '
@@ -709,8 +709,8 @@ def set_zlim3d(self, bottom=None, top=None, emit=True, auto=False, **kw):
709
709
bottom , top = bottom
710
710
711
711
self ._process_unit_info (zdata = (bottom , top ))
712
- bottom = self ._validate_axis_limits (bottom , self .convert_yunits )
713
- top = self ._validate_axis_limits (top , self .convert_yunits )
712
+ bottom = self ._validate_converted_limits (bottom , self .convert_yunits )
713
+ top = self ._validate_converted_limits (top , self .convert_yunits )
714
714
715
715
old_bottom , old_top = self .get_zlim ()
716
716
if bottom is None :
0 commit comments