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

Function test_set_xy_bound

lib/matplotlib/tests/test_axes.py:7160–7181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7158
7159
7160def test_set_xy_bound():
7161 fig = plt.figure()
7162 ax = fig.add_subplot()
7163 ax.set_xbound(2.0, 3.0)
7164 assert ax.get_xbound() == (2.0, 3.0)
7165 assert ax.get_xlim() == (2.0, 3.0)
7166 ax.set_xbound(upper=4.0)
7167 assert ax.get_xbound() == (2.0, 4.0)
7168 assert ax.get_xlim() == (2.0, 4.0)
7169 ax.set_xbound(lower=3.0)
7170 assert ax.get_xbound() == (3.0, 4.0)
7171 assert ax.get_xlim() == (3.0, 4.0)
7172
7173 ax.set_ybound(2.0, 3.0)
7174 assert ax.get_ybound() == (2.0, 3.0)
7175 assert ax.get_ylim() == (2.0, 3.0)
7176 ax.set_ybound(upper=4.0)
7177 assert ax.get_ybound() == (2.0, 4.0)
7178 assert ax.get_ylim() == (2.0, 4.0)
7179 ax.set_ybound(lower=3.0)
7180 assert ax.get_ybound() == (3.0, 4.0)
7181 assert ax.get_ylim() == (3.0, 4.0)
7182
7183
7184def test_pathological_hexbin():

Callers

nothing calls this directly

Calls 8

figureMethod · 0.80
add_subplotMethod · 0.80
get_xboundMethod · 0.80
get_yboundMethod · 0.80
set_xboundMethod · 0.45
get_xlimMethod · 0.45
set_yboundMethod · 0.45
get_ylimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…