MCPcopy
hub / github.com/matplotlib/matplotlib / get_ylim

Method get_ylim

lib/matplotlib/axes/_base.py:4121–4141  ·  view source on GitHub ↗

Return the y-axis view limits. Returns ------- bottom, top : (float, float) The current y-axis limits in data coordinates. See Also -------- .Axes.set_ylim .Axes.set_ybound, .Axes.get_ybound .Axes.invert_yaxis, .A

(self)

Source from the content-addressed store, hash-verified

4119 auto=None)
4120
4121 def get_ylim(self):
4122 """
4123 Return the y-axis view limits.
4124
4125 Returns
4126 -------
4127 bottom, top : (float, float)
4128 The current y-axis limits in data coordinates.
4129
4130 See Also
4131 --------
4132 .Axes.set_ylim
4133 .Axes.set_ybound, .Axes.get_ybound
4134 .Axes.invert_yaxis, .Axes.yaxis_inverted
4135
4136 Notes
4137 -----
4138 The y-axis may be inverted, in which case the *bottom* value
4139 will be greater than the *top* value.
4140 """
4141 return tuple(self.viewLim.intervaly)
4142
4143 def set_ylim(self, bottom=None, top=None, *, emit=True, auto=False,
4144 ymin=None, ymax=None):

Callers 15

axisMethod · 0.95
get_yboundMethod · 0.95
_get_viewMethod · 0.95
_bounds_from_inset_axMethod · 0.45
_update_dividersMethod · 0.45
__init__Method · 0.45
_draw_shapeMethod · 0.45
ylimFunction · 0.45
scroll_handlerFunction · 0.45
shareyMethod · 0.45
_set_limsMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_interactive_zoomFunction · 0.36
test_interactive_panFunction · 0.36
test_maxlengthFunction · 0.36
test_maxlength_no_brokenFunction · 0.36
test_log_scalesFunction · 0.36
test_invalid_log_limsFunction · 0.36
test_spyFunction · 0.36
test_autoscale_tightFunction · 0.36