()
| 30 | |
| 31 | @image_comparison(['boxarrow_test_image.png'], style='mpl20') |
| 32 | def test_boxarrow(): |
| 33 | |
| 34 | styles = mpatches.BoxStyle.get_styles() |
| 35 | |
| 36 | n = len(styles) |
| 37 | spacing = 1.2 |
| 38 | |
| 39 | figheight = (n * spacing + .5) |
| 40 | fig = plt.figure(figsize=(4 / 1.5, figheight / 1.5)) |
| 41 | |
| 42 | fontsize = 0.3 * 72 |
| 43 | |
| 44 | for i, stylename in enumerate(sorted(styles)): |
| 45 | fig.text(0.5, ((n - i) * spacing - 0.5)/figheight, stylename, |
| 46 | ha="center", |
| 47 | size=fontsize, |
| 48 | transform=fig.transFigure, |
| 49 | bbox=dict(boxstyle=stylename, fc="w", ec="k")) |
| 50 | |
| 51 | |
| 52 | @image_comparison(['boxarrow_adjustment_test_image.png'], style='mpl20') |
nothing calls this directly
no test coverage detected
searching dependent graphs…