From 27872280647a42bd5f08314d16b653272c5c36d4 Mon Sep 17 00:00:00 2001 From: Ruth Comer Date: Wed, 28 Sep 2022 16:09:48 +0100 Subject: [PATCH] remove outline workaround --- docs/src/whatsnew/latest.rst | 2 ++ lib/iris/plot.py | 5 ----- lib/iris/tests/test_mapping.py | 6 ------ 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/docs/src/whatsnew/latest.rst b/docs/src/whatsnew/latest.rst index d579ddcce7..fbce185a10 100644 --- a/docs/src/whatsnew/latest.rst +++ b/docs/src/whatsnew/latest.rst @@ -124,6 +124,8 @@ This document explains the changes made to Iris for this release #. `@trexfeathers`_ adapted the benchmark for importing :mod:`iris.palette` to cope with new colormap behaviour in Matplotlib `v3.6`. (:pull:`4998`) +#. `@rcomer`_ removed a now redundant workaround for an old matplotlib bug, + highlighted by :issue:`4090`. (:pull:`4999`) .. comment Whatsnew author names (@github name) in alphabetical order. Note that, diff --git a/lib/iris/plot.py b/lib/iris/plot.py index 2da91e8c67..4acb38b859 100644 --- a/lib/iris/plot.py +++ b/lib/iris/plot.py @@ -1344,11 +1344,6 @@ def outline(cube, coords=None, color="k", linewidth=None, axes=None): axes=axes, ) - # set the _is_stroked property to get a single color grid. - # See https://github.com/matplotlib/matplotlib/issues/1302 - result._is_stroked = False - if hasattr(result, "_wrapped_collection_fix"): - result._wrapped_collection_fix._is_stroked = False return result diff --git a/lib/iris/tests/test_mapping.py b/lib/iris/tests/test_mapping.py index a71385b5bc..202c319b61 100644 --- a/lib/iris/tests/test_mapping.py +++ b/lib/iris/tests/test_mapping.py @@ -242,12 +242,6 @@ def test_pcolormesh(self): iplt.pcolormesh(self.cube) self.check_graphic() - def test_grid(self): - iplt.pcolormesh(self.cube, facecolors="none", edgecolors="blue") - # the result is a graphic which has coloured edges. This is a mpl bug, - # see https://github.com/matplotlib/matplotlib/issues/1302 - self.check_graphic() - def test_outline(self): iplt.outline(self.cube) self.check_graphic()