File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1096,10 +1096,6 @@ def _get_style_dicts(style, infer=False):
10961096 'mpl15' : 'classic' ,
10971097 'original' : mpl .matplotlib_fname (),
10981098 }
1099- if isinstance (style , str ) or isinstance (style , dict ):
1100- styles = [style ]
1101- else :
1102- styles = style
11031099
11041100 # Always apply the default style *first* so styles are rigid
11051101 kw_params = _get_default_dict ()
@@ -1113,6 +1109,10 @@ def _get_style_dicts(style, infer=False):
11131109
11141110 # Apply user input style(s) one by one
11151111 # NOTE: Always use proplot fonts if style does not explicitly set them.
1112+ if isinstance (style , str ) or isinstance (style , dict ):
1113+ styles = [style ]
1114+ else :
1115+ styles = style
11161116 for style in styles :
11171117 if isinstance (style , dict ):
11181118 kw = style
You can’t perform that action at this time.
0 commit comments