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)