Skip to content

Commit

Permalink
Fix rename_aesthetics
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Jul 31, 2018
1 parent 723d4f2 commit 0ab88f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plotnine/aes.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ def rename_aesthetics(obj):
}

if isinstance(obj, dict):
for k in lookup:
for eng, us in lookup.items():
with suppress(KeyError):
obj['color'] = obj.pop('colour')
obj[us] = obj.pop(eng)
else:
obj = [lookup[x] if x in lookup else x for x in obj]
return obj
Expand Down

0 comments on commit 0ab88f2

Please sign in to comment.