09991e6cab0b33964021ce962309c9b865d98d20,lib/mpl_toolkits/mplot3d/axes3d.py,Axes3D,set_zlim3d,#Axes3D#Any#Any#Any#Any#,710

Before Change


        See :meth:`matplotlib.axes.Axes.set_ylim` for full documentation

        
        if "zmin" in kw:
            bottom = kw.pop("zmin")
        if "zmax" in kw:
            top = kw.pop("zmax")
        if kw:
            raise ValueError("unrecognized kwargs: %s" % list(kw))

        if top is None and cbook.iterable(bottom):
            bottom, top = bottom

        self._process_unit_info(zdata=(bottom, top))
        bottom = self._validate_converted_limits(bottom, self.convert_zunits)
        top = self._validate_converted_limits(top, self.convert_zunits)

        old_bottom, old_top = self.get_zlim()
        if bottom is None:
            bottom = old_bottom
        if top is None:
            top = old_top

        if top == bottom:
            warnings.warn(("Attempting to set identical bottom==top results\n"
                     "in singular transformations; automatically expanding.\n"
                     "bottom=%s, top=%s") % (bottom, top))
        bottom, top = mtransforms.nonsingular(bottom, top, increasing=False)
        bottom, top = self.zaxis.limit_range_for_scale(bottom, top)
        self.zz_viewLim.intervalx = (bottom, top)

        if auto is not None:
            self._autoscaleZon = bool(auto)

After Change


        
        if top is None and cbook.iterable(bottom):
            bottom, top = bottom
        if zmin is not None:
            cbook.warn_deprecated("3.0", name="`zmin`",
                                  alternative="`bottom`", obj_type="argument")
            if bottom is not None:
                raise TypeError("Cannot pass both `zmin` and `bottom`")
            bottom = zmin
        if zmax is not None:
            cbook.warn_deprecated("3.0", name="`zmax`",
                                  alternative="`top`", obj_type="argument")
            if top is not None:
                raise TypeError("Cannot pass both `zmax` and `top`")
            top = zmax

        self._process_unit_info(zdata=(bottom, top))
        bottom = self._validate_converted_limits(bottom, self.convert_zunits)
        top = self._validate_converted_limits(top, self.convert_zunits)

        old_bottom, old_top = self.get_zlim()
        if bottom is None:
            bottom = old_bottom
        if top is None:
            top = old_top

        if top == bottom:
            warnings.warn(("Attempting to set identical bottom==top results\n"
                     "in singular transformations; automatically expanding.\n"
                     "bottom=%s, top=%s") % (bottom, top))
        bottom, top = mtransforms.nonsingular(bottom, top, increasing=False)
        bottom, top = self.zaxis.limit_range_for_scale(bottom, top)
        self.zz_viewLim.intervalx = (bottom, top)

        if auto is not None:
            self._autoscaleZon = bool(auto)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 38

Instances


Project Name: matplotlib/matplotlib
Commit Name: 09991e6cab0b33964021ce962309c9b865d98d20
Time: 2018-05-07
Author: zac.hatfield.dodds@gmail.com
File Name: lib/mpl_toolkits/mplot3d/axes3d.py
Class Name: Axes3D
Method Name: set_zlim3d


Project Name: matplotlib/matplotlib
Commit Name: 09991e6cab0b33964021ce962309c9b865d98d20
Time: 2018-05-07
Author: zac.hatfield.dodds@gmail.com
File Name: lib/mpl_toolkits/mplot3d/axes3d.py
Class Name: Axes3D
Method Name: set_ylim3d


Project Name: matplotlib/matplotlib
Commit Name: 09991e6cab0b33964021ce962309c9b865d98d20
Time: 2018-05-07
Author: zac.hatfield.dodds@gmail.com
File Name: lib/mpl_toolkits/mplot3d/axes3d.py
Class Name: Axes3D
Method Name: set_zlim3d


Project Name: matplotlib/matplotlib
Commit Name: 09991e6cab0b33964021ce962309c9b865d98d20
Time: 2018-05-07
Author: zac.hatfield.dodds@gmail.com
File Name: lib/mpl_toolkits/mplot3d/axes3d.py
Class Name: Axes3D
Method Name: set_xlim3d