()
| 355 | |
| 356 | |
| 357 | def test_circular_contour_warning(): |
| 358 | # Check that almost circular contours don't throw a warning |
| 359 | x, y = np.meshgrid(np.linspace(-2, 2, 4), np.linspace(-2, 2, 4)) |
| 360 | r = np.hypot(x, y) |
| 361 | plt.figure() |
| 362 | cs = plt.contour(x, y, r) |
| 363 | plt.clabel(cs) |
| 364 | |
| 365 | |
| 366 | @pytest.mark.parametrize("use_clabeltext, contour_zorder, clabel_zorder", |