Skip to content

Commit

Permalink
Update lib/cartopy/mpl/geoaxes.py
Browse files Browse the repository at this point in the history
Co-authored-by: Elliott Sales de Andrade <[email protected]>
  • Loading branch information
smartlixx and QuLogic committed Nov 19, 2021
1 parent f8b9040 commit 1964e12
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/cartopy/mpl/geoaxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 1964e12

Please sign in to comment.