Skip to content

Commit 48d9ad0

Browse files
committed
Corrected wrong ordering of linestyles in axes._base._process_plot_format
1 parent 261331f commit 48d9ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _process_plot_format(fmt):
8080
except ValueError:
8181
pass # No, not just a color.
8282

83-
for ls in sorted(mlines.lineStyles, key=len):
83+
for ls in sorted(mlines.lineStyles, key=len, reverse=True):
8484
if fmt.find(ls) >= 0:
8585
linestyle = ls
8686
fmt = fmt.replace(ls, '')

0 commit comments

Comments
 (0)