Change spacing of dashes in dashed line in matplotlib : <p>In Python, using matplotlib, is there a way to change the distance of the dashes for different linestyles, for example, using the following command:</p>

<pre><code>plt.plot(x,y,linestyle='--')
</code></pre>
