linestyles patch - please review

Hello,

I have attached a patch that addresses the following:

   plot accepts the linestyles arguments '-','--','-.',':' [+ some more]
and the Collection class accepts the
   linestyle arguments 'solid','dashed','dashdot','dotted'.

This patch allows to use both notations. A test script is attached too. So its possible to use
   plot(x,y, linestyle='--') # old (preferred) style
   plot(x,y, linestyle='dashed') # now also possible
and also
   contour(Z, linestyles='dotted') # old style
   contour(Z, linestyles=':') # now also possible
The latter case is probably more useful than the first, but both work.

Any comments ?

Manuel

linestyles.patch (2.98 KB)

testlinestyle.py (804 Bytes)