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

Function test_hlines_default

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

Source from the content-addressed store, hash-verified

5844
5845
5846def test_hlines_default():
5847 fig, ax = plt.subplots()
5848 with mpl.rc_context({'lines.color': 'red'}):
5849 lines = ax.hlines(0.5, 0, 1)
5850 assert mpl.colors.same_color(lines.get_color(), 'red')
5851
5852
5853@pytest.mark.parametrize('data', [[1, 2, 3, np.nan, 5],

Callers

nothing calls this directly

Calls 3

hlinesMethod · 0.80
subplotsMethod · 0.45
get_colorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…