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

Function test_margin_getters

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

Source from the content-addressed store, hash-verified

7118
7119
7120def test_margin_getters():
7121 fig = plt.figure()
7122 ax = fig.add_subplot()
7123 ax.margins(0.2, 0.3)
7124 assert ax.get_xmargin() == 0.2
7125 assert ax.get_ymargin() == 0.3
7126
7127
7128def test_set_margin_updates_limits():

Callers

nothing calls this directly

Calls 5

figureMethod · 0.80
add_subplotMethod · 0.80
get_xmarginMethod · 0.80
get_ymarginMethod · 0.80
marginsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…