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

Function generate_errorbar_inputs

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

Source from the content-addressed store, hash-verified

7428
7429
7430def generate_errorbar_inputs():
7431 base_xy = cycler('x', [np.arange(5)]) + cycler('y', [np.ones(5)])
7432 err_cycler = cycler('err', [1,
7433 [1, 1, 1, 1, 1],
7434 [[1, 1, 1, 1, 1],
7435 [1, 1, 1, 1, 1]],
7436 np.ones(5),
7437 np.ones((2, 5)),
7438 None
7439 ])
7440 xerr_cy = cycler('xerr', err_cycler)
7441 yerr_cy = cycler('yerr', err_cycler)
7442
7443 empty = ((cycler('x', [[]]) + cycler('y', [[]])) *
7444 cycler('xerr', [[], None]) * cycler('yerr', [[], None]))
7445 xerr_only = base_xy * xerr_cy
7446 yerr_only = base_xy * yerr_cy
7447 both_err = base_xy * yerr_cy * xerr_cy
7448
7449 return [*xerr_only, *yerr_only, *both_err, *empty]
7450
7451
7452@pytest.mark.parametrize('kwargs', generate_errorbar_inputs())

Callers

nothing calls this directly

Calls 1

cyclerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…