File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2108,7 +2108,10 @@ def unmasked_index_ranges(mask, compressed=True):
2108
2108
(':' , 'dotted' )]
2109
2109
2110
2110
ls_mapper = dict (_linestyles )
2111
- ls_mapperr = dict ([(ls [1 ], ls [0 ]) for ls in _linestyles ])
2111
+ # The ls_mapper maps short codes for line style to their full name used
2112
+ # by backends
2113
+ # The reverse mapper is for mapping full names to short ones
2114
+ ls_mapper_r = dict ([(ls [1 ], ls [0 ]) for ls in _linestyles ])
2112
2115
2113
2116
2114
2117
def align_iterators (func , * iterables ):
Original file line number Diff line number Diff line change 16
16
from matplotlib import verbose
17
17
from . import artist
18
18
from .artist import Artist
19
- from .cbook import iterable , is_string_like , is_numlike , ls_mapperr
19
+ from .cbook import iterable , is_string_like , is_numlike , ls_mapper_r
20
20
from .colors import colorConverter
21
21
from .path import Path
22
22
from .transforms import Bbox , TransformedPath , IdentityTransform
@@ -972,8 +972,8 @@ def set_linestyle(self, linestyle):
972
972
break
973
973
974
974
if linestyle not in self ._lineStyles :
975
- if linestyle in ls_mapperr :
976
- linestyle = ls_mapperr [linestyle ]
975
+ if linestyle in ls_mapper_r :
976
+ linestyle = ls_mapper_r [linestyle ]
977
977
else :
978
978
verbose .report ('Unrecognized line style %s, %s' %
979
979
(linestyle , type (linestyle )))
You can’t perform that action at this time.
0 commit comments