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

Function test_stem

lib/matplotlib/tests/test_axes.py:4971–4977  ·  view source on GitHub ↗
(text_placeholders)

Source from the content-addressed store, hash-verified

4969
4970@image_comparison(['stem.png'], style='mpl20', remove_text=True)
4971def test_stem(text_placeholders):
4972 x = np.linspace(0.1, 2 * np.pi, 100)
4973
4974 fig, ax = plt.subplots()
4975 ax.stem(x, np.cos(x),
4976 linefmt='C2-.', markerfmt='k+', basefmt='C1-.', label='stem')
4977 ax.legend()
4978
4979
4980def test_stem_args():

Callers

nothing calls this directly

Calls 3

subplotsMethod · 0.45
stemMethod · 0.45
legendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…