From 1964e129d26b160ebc5b0682a2725912362e2100 Mon Sep 17 00:00:00 2001 From: Xianxiang Li Date: Sat, 17 Jul 2021 22:39:50 +0800 Subject: [PATCH] Update lib/cartopy/mpl/geoaxes.py Co-authored-by: Elliott Sales de Andrade --- lib/cartopy/mpl/geoaxes.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/cartopy/mpl/geoaxes.py b/lib/cartopy/mpl/geoaxes.py index 096b97f36..6524a3ea5 100644 --- a/lib/cartopy/mpl/geoaxes.py +++ b/lib/cartopy/mpl/geoaxes.py @@ -758,13 +758,11 @@ def add_geometries(self, geoms, crs, **kwargs): styler_kw = styler def styler(geom): - styler_g = styler_kw if styler_kw else dict() - styler_g = styler_g.copy() + styler_g = styler_kw.copy() if styler_kw else {} if isinstance(geom, sgeom.LineString): styler_g['facecolor'] = 'none' - if ('edgecolor' not in kwargs) or ( - kwargs['edgecolor'] == 'face'): + if kwargs.get('edgecolor', 'face') == 'face': styler_g['edgecolor'] = mpl.rcParams['patch.edgecolor'] else: styler_g['edgecolor'] = kwargs['edgecolor']