Matplotlib specific representation
<p>I am studying the influence of diverse factors on the distribution of bikes throughout a bike- sharing system called Velib in paris. I have 1222 bike stations with their occupation rate, their latitude and their longitude. I would like to make a map like this : 
(<a href="http://images.google.fr/imgres?imgurl=http%3A%2F%2Fscipy-cookbook.readthedocs.org%2F_images%2Fgriddataexample1.png&amp;imgrefurl=https%3A%2F%2Fwizardforcel.gitbooks.io%2Fscipy-cookbook-en%2Fcontent%2F37.html&amp;h=288&amp;w=432&amp;tbnid=j0EtJS7s1utbYM%3A&amp;docid=KQV-DInQ9QIq2M&amp;ei=L2ADWJqUJ8L9aemiiYAJ&amp;tbm=isch&amp;client=safari&amp;iact=rc&amp;uact=3&amp;dur=1229&amp;page=13&amp;start=324&amp;ndsp=31&amp;ved=0ahUKEwja57uTmN_PAhXCfhoKHWlRApA4rAIQMwg0KDEwMQ&amp;bih=739&amp;biw=1438" rel="nofollow">http://images.google.fr/imgres?imgurl=http%3A%2F%2Fscipy-cookbook.readthedocs.org%2F_images%2Fgriddataexample1.png&amp;imgrefurl=https%3A%2F%2Fwizardforcel.gitbooks.io%2Fscipy-cookbook-en%2Fcontent%2F37.html&amp;h=288&amp;w=432&amp;tbnid=j0EtJS7s1utbYM%3A&amp;docid=KQV-DInQ9QIq2M&amp;ei=L2ADWJqUJ8L9aemiiYAJ&amp;tbm=isch&amp;client=safari&amp;iact=rc&amp;uact=3&amp;dur=1229&amp;page=13&amp;start=324&amp;ndsp=31&amp;ved=0ahUKEwja57uTmN_PAhXCfhoKHWlRApA4rAIQMwg0KDEwMQ&amp;bih=739&amp;biw=1438</a>) However i can't figure out a way to do it using marplotlib. For now i have this code but it is irrelevant to what i am trying to show: </p>

<pre><code>for k in range(number gf bike stations):
</code></pre>

<p>T(k)/Tt is (occupation rate/average occupation rate) and R_0 is a list with all the data   </p>

<pre><code>if T(k)/Tt&gt;1.5:      (if the occupation ratio is &gt;1.5, i scatter a green dot and so on)
    ax.scatter(R_0[k]['position']['lng'],R_0[k]['position']['lat'], color='g', s=10)       
elif T(k)/Tt&gt;1:      (yellow dot)
    ax.scatter(R_0[k]['position']['lng'],R_0[k]['position']['lat'], color='y', s=10)
elif T(k)/Tt&gt;0.5:    (red dot)
    ax.scatter(R_0[k]['position']['lng'],R_0[k]['position']['lat'], color='r', s=10)
</code></pre>

<p>It seems like you need:</p>

<pre><code>matplotlib.pyplot.contour(x, y, z)
matplotlib.pyplot.contourf(x, y, z)
</code></pre>

<p>with arguments x - latitude, y - longitude and z - occupation rate. </p>

python matplotlib