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

Function test_margins

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py:2335–2347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2333
2334
2335def test_margins():
2336 fig = plt.figure()
2337 ax = fig.add_subplot(projection='3d')
2338 ax.margins(0.2)
2339 assert ax.margins() == (0.2, 0.2, 0.2)
2340 ax.margins(0.1, 0.2, 0.3)
2341 assert ax.margins() == (0.1, 0.2, 0.3)
2342 ax.margins(x=0)
2343 assert ax.margins() == (0, 0.2, 0.3)
2344 ax.margins(y=0.1)
2345 assert ax.margins() == (0, 0.1, 0.3)
2346 ax.margins(z=0)
2347 assert ax.margins() == (0, 0.1, 0)
2348
2349
2350def test_margin_getters():

Callers

nothing calls this directly

Calls 3

figureMethod · 0.80
add_subplotMethod · 0.80
marginsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…