Allow both linestyle definition "accents" and dash-patterns as linestyle...

... for collection, lines and patches.

(code & tests)

see. #2136

This is a minimal patch. It seems to me that the linestyle handling could get some more cleanup.
e.g. in lines.py the drawing is handed over to some `_draw_xxx` methods, those are almost only stubs changing the name of the linestyle
I was about to suggest that as well. Also, add a comment explaining the
reasoning you gave above.


On Tue, Jul 15, 2014 at 1:43 PM, Thomas A Caswell <notifications@github.com>
wrote:

> In lib/matplotlib/cbook.py:
>
> > @@ -2074,7 +2074,7 @@ def unmasked_index_ranges(mask, compressed=True):
> >                 (':', 'dotted')]
> >
> >  ls_mapper = dict(_linestyles)
> > -ls_mapper.update([(ls[1], ls[0]) for ls in _linestyles])
> > +ls_mapperr = dict([(ls[1], ls[0]) for ls in _linestyles])
>
> can you use ls_mapper_r which matches our convention for color maps?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/matplotlib/matplotlib/pull/3265/files#r14950740>.
>