Matplotlib: How to make a dotted line consisting of dots (circles)?
<p>I have two smooth dependences y1(x) and y2(x) where x's are distributed irregularly. I want these dependences to be described with dotted lines (<code>linestyle = ':'</code>). What i get now in a *.pdf file is shown <a href="http://i.stack.imgur.com/s9qPA.png" rel="nofollow">here</a>:</p>

<p>Here's the code:</p>

<pre><code>import matplotlib.pyplot as plt

fig, ax = plt.subplots()

x  = [0, 1, 2,  3,  5,  7, 13, 14]
y1 = [3, 5, 6,  8,  7,  6,  9, 10]
y2 = [1, 7, 8, 10, 14, 18, 20, 23]

ax.plot(x, y1, 
        linestyle = ':',
        linewidth = 4,
        color = 'Green')

ax.plot(x, y2, 
        linestyle = ':',
        linewidth = 4,
        color = 'Blue')

ax.set_ylabel('y(x)')
ax.set_xlabel('x')

plt.savefig("./test_dotted_line.pdf")
</code></pre>

<p>I played with <code>dashes = [2,2]</code> (and other combinations) and <code>dash_capstyle = 'round'</code>, but the result looks bad.</p>

<p>Is there a chance to have a dotted line consisting of 'circle' dots?</p>