title: Changing matplotlib's dashed line characteristics other than just line width
body: <p>I have the following plot generated from matplotlib:</p>
  
  <p><a href="https://i.stack.imgur.com/lnuH6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lnuH6.png" alt="matplotlib spiral"></a></p>
  
  <p>I've found out how to change the <i>width</i> of the line, but I would like to change the <i>length</i> of the individual segments. I can't find where this is in the matplotlib documentation. How do I do this?</p>
  
  <p>Also, while I'm here, is there a way to change the spacing between the segments?</p>