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

Function test_markevery_line

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

Source from the content-addressed store, hash-verified

1889
1890@image_comparison(['markevery_line.png'], remove_text=True, style='mpl20')
1891def test_markevery_line():
1892 x = np.linspace(0, 10, 100)
1893 y = np.sin(x) * np.sqrt(x/10 + 0.5)
1894
1895 # check line/marker combos
1896 fig, ax = plt.subplots()
1897 ax.plot(x, y, '-o', label='default')
1898 ax.plot(x, y+1, '-d', markevery=None, label='mark all')
1899 ax.plot(x, y+2, '-s', markevery=10, label='mark every 10')
1900 ax.plot(x, y+3, '-+', markevery=(5, 20), label='mark every 20 starting at 5')
1901 ax.legend()
1902
1903
1904@image_comparison(['markevery_linear_scales.png'], remove_text=True,

Callers

nothing calls this directly

Calls 4

sqrtMethod · 0.80
subplotsMethod · 0.45
plotMethod · 0.45
legendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…