MCPcopy
hub / github.com/matplotlib/matplotlib / test_margins_errors

Function test_margins_errors

lib/matplotlib/tests/test_axes.py:7147–7151  ·  view source on GitHub ↗
(err, args, kwargs, match)

Source from the content-addressed store, hash-verified

7145 (TypeError, (1, 1, 1), {}, 'Must pass a single positional argument'),
7146))
7147def test_margins_errors(err, args, kwargs, match):
7148 with pytest.raises(err, match=match):
7149 fig = plt.figure()
7150 ax = fig.add_subplot()
7151 ax.margins(*args, **kwargs)
7152
7153
7154def test_length_one_hist():

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…