@@ -610,22 +610,26 @@ def _determine_lims(self, xmin=None, xmax=None, *args, **kwargs):
610
610
xmax += 0.05
611
611
return (xmin , xmax )
612
612
613
- def set_xlim3d (self , left = None , right = None , emit = True , auto = False , ** kw ):
613
+ def set_xlim3d (self , left = None , right = None , emit = True , auto = False ,
614
+ * , xmin = None , xmax = None ):
614
615
"""
615
616
Set 3D x limits.
616
617
617
618
See :meth:`matplotlib.axes.Axes.set_xlim` for full documentation.
618
619
619
620
"""
620
- if 'xmin' in kw :
621
- left = kw .pop ('xmin' )
622
- if 'xmax' in kw :
623
- right = kw .pop ('xmax' )
624
- if kw :
625
- raise ValueError ("unrecognized kwargs: %s" % list (kw ))
626
-
627
621
if right is None and cbook .iterable (left ):
628
622
left , right = left
623
+ if xmin is not None :
624
+ if left is not None :
625
+ raise ValueError ('Cannot use argument xmin=%r; would '
626
+ 'override left=%r' % (xmin , left ))
627
+ left = xmin
628
+ if xmax is not None :
629
+ if right is not None :
630
+ raise ValueError ('Cannot use argument xmax=%r; would '
631
+ 'override right=%r' % (xmax , right ))
632
+ right = xmax
629
633
630
634
self ._process_unit_info (xdata = (left , right ))
631
635
left = self ._validate_converted_limits (left , self .convert_xunits )
@@ -662,22 +666,26 @@ def set_xlim3d(self, left=None, right=None, emit=True, auto=False, **kw):
662
666
return left , right
663
667
set_xlim = set_xlim3d
664
668
665
- def set_ylim3d (self , bottom = None , top = None , emit = True , auto = False , ** kw ):
669
+ def set_ylim3d (self , bottom = None , top = None , emit = True , auto = False ,
670
+ * , ymin = None , ymax = None ):
666
671
"""
667
672
Set 3D y limits.
668
673
669
674
See :meth:`matplotlib.axes.Axes.set_ylim` for full documentation.
670
675
671
676
"""
672
- if 'ymin' in kw :
673
- bottom = kw .pop ('ymin' )
674
- if 'ymax' in kw :
675
- top = kw .pop ('ymax' )
676
- if kw :
677
- raise ValueError ("unrecognized kwargs: %s" % list (kw ))
678
-
679
677
if top is None and cbook .iterable (bottom ):
680
678
bottom , top = bottom
679
+ if ymin is not None :
680
+ if bottom is not None :
681
+ raise ValueError ('Cannot use argument ymin=%r; would '
682
+ 'override bottom=%r' % (ymin , bottom ))
683
+ bottom = ymin
684
+ if ymax is not None :
685
+ if top is not None :
686
+ raise ValueError ('Cannot use argument ymax=%r; would '
687
+ 'override top=%r' % (ymax , top ))
688
+ top = ymax
681
689
682
690
self ._process_unit_info (ydata = (bottom , top ))
683
691
bottom = self ._validate_converted_limits (bottom , self .convert_yunits )
@@ -714,22 +722,26 @@ def set_ylim3d(self, bottom=None, top=None, emit=True, auto=False, **kw):
714
722
return bottom , top
715
723
set_ylim = set_ylim3d
716
724
717
- def set_zlim3d (self , bottom = None , top = None , emit = True , auto = False , ** kw ):
725
+ def set_zlim3d (self , bottom = None , top = None , emit = True , auto = False ,
726
+ * , zmin = None , zmax = None ):
718
727
"""
719
728
Set 3D z limits.
720
729
721
730
See :meth:`matplotlib.axes.Axes.set_ylim` for full documentation
722
731
723
732
"""
724
- if 'zmin' in kw :
725
- bottom = kw .pop ('zmin' )
726
- if 'zmax' in kw :
727
- top = kw .pop ('zmax' )
728
- if kw :
729
- raise ValueError ("unrecognized kwargs: %s" % list (kw ))
730
-
731
733
if top is None and cbook .iterable (bottom ):
732
734
bottom , top = bottom
735
+ if zmin is not None :
736
+ if bottom is not None :
737
+ raise ValueError ('Cannot use argument zmin=%r; would '
738
+ 'override bottom=%r' % (zmin , bottom ))
739
+ bottom = zmin
740
+ if zmax is not None :
741
+ if top is not None :
742
+ raise ValueError ('Cannot use argument zmax=%r; would '
743
+ 'override top=%r' % (zmax , top ))
744
+ top = zmax
733
745
734
746
self ._process_unit_info (zdata = (bottom , top ))
735
747
bottom = self ._validate_converted_limits (bottom , self .convert_zunits )
0 commit comments