()
| 193 | @image_comparison(['connection_styles.png'], style='mpl20', remove_text=True, |
| 194 | tol=0 if platform.machine() == 'x86_64' else 0.013) |
| 195 | def test_connection_styles(): |
| 196 | styles = mpatches.ConnectionStyle.get_styles() |
| 197 | |
| 198 | n = len(styles) |
| 199 | fig, ax = plt.subplots(figsize=(6, 10)) |
| 200 | ax.set_xlim(0, 1) |
| 201 | ax.set_ylim(-1, n) |
| 202 | |
| 203 | for i, stylename in enumerate(sorted(styles)): |
| 204 | patch = mpatches.FancyArrowPatch((0.1, i), (0.8, i + 0.5), |
| 205 | arrowstyle="->", |
| 206 | connectionstyle=stylename, |
| 207 | mutation_scale=25) |
| 208 | ax.add_patch(patch) |
| 209 | |
| 210 | |
| 211 | def test_invalid_intersection(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…