Skip to content

Commit

Permalink
Bugfix: make auto styles work without override kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesVarndell committed Jun 27, 2024
1 parent 10f4e88 commit 529e327
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/earthkit/plots/components/subplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,11 @@ def _extract_plottables(
key: kwargs.pop(key) for key in _STYLE_KWARGS if key in kwargs
}
# These are kwargs which can be overridden without forcing a new Style
override_kwargs = {key: style_kwargs.pop(key) for key in _OVERRIDE_KWARGS}
override_kwargs = {
key: style_kwargs.pop(key)
for key in _OVERRIDE_KWARGS
if key in style_kwargs
}
if style_kwargs:
style_class = (
Style if not method_name.startswith("contour") else Contour
Expand Down

0 comments on commit 529e327

Please sign in to comment.