(text_placeholders)
| 4969 | |
| 4970 | @image_comparison(['stem.png'], style='mpl20', remove_text=True) |
| 4971 | def 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 | |
| 4980 | def test_stem_args(): |