(sty)
| 153 | |
| 154 | |
| 155 | def demo(sty): |
| 156 | mpl.style.use(sty) |
| 157 | fig, ax = plt.subplots(figsize=(3, 3)) |
| 158 | |
| 159 | ax.set_title(f'style: {sty!r}', color='C0') |
| 160 | |
| 161 | ax.plot(th, np.cos(th), 'C1', label='C1') |
| 162 | ax.plot(th, np.sin(th), 'C2', label='C2') |
| 163 | ax.legend() |
| 164 | |
| 165 | |
| 166 | demo('default') |