MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / get_ybound

Method get_ybound

lib/matplotlib/axes/_base.py:4071–4085  ·  view source on GitHub ↗

Return the lower and upper y-axis bounds, in increasing order. See Also -------- set_ybound get_ylim, set_ylim invert_yaxis, yaxis_inverted

(self)

Source from the content-addressed store, hash-verified

4069 """))
4070
4071 def get_ybound(self):
4072 """
4073 Return the lower and upper y-axis bounds, in increasing order.
4074
4075 See Also
4076 --------
4077 set_ybound
4078 get_ylim, set_ylim
4079 invert_yaxis, yaxis_inverted
4080 """
4081 bottom, top = self.get_ylim()
4082 if bottom < top:
4083 return bottom, top
4084 else:
4085 return top, bottom
4086
4087 def set_ybound(self, lower=None, upper=None):
4088 """

Callers 15

get_data_ratioMethod · 0.95
apply_aspectMethod · 0.95
set_yboundMethod · 0.95
_get_coord_infoMethod · 0.80
draw_gridMethod · 0.80
__init__Method · 0.80
_get_dataMethod · 0.80
_setup_edge_handlesMethod · 0.80
axhlineMethod · 0.80
psdMethod · 0.80
csdMethod · 0.80

Calls 1

get_ylimMethod · 0.95

Tested by 3

test_span_selector_boundFunction · 0.64
test_set_xy_boundFunction · 0.64
test_axes_marginsFunction · 0.64