| 236 | @image_comparison(['simplify_curve'], remove_text=True, style='_classic_test', |
| 237 | tol=0.017) |
| 238 | def test_simplify_curve(): |
| 239 | pp1 = patches.PathPatch( |
| 240 | Path([(0, 0), (1, 0), (1, 1), (np.nan, 1), (0, 0), (2, 0), (2, 2), |
| 241 | (0, 0)], |
| 242 | [Path.MOVETO, Path.CURVE3, Path.CURVE3, Path.CURVE3, Path.CURVE3, |
| 243 | Path.CURVE3, Path.CURVE3, Path.CLOSEPOLY]), |
| 244 | fc="none") |
| 245 | |
| 246 | fig, ax = plt.subplots() |
| 247 | ax.add_patch(pp1) |
| 248 | ax.set_xlim(0, 2) |
| 249 | ax.set_ylim(0, 2) |
| 250 | |
| 251 | |
| 252 | @check_figures_equal(extensions=['png', 'pdf', 'svg']) |