title: Fill a matplotlib contour plot
body: <p>With the following code I have obtained the following contour map:</p>
  <pre><code>fig, ax = plt.subplots()
  x = np.arange(431)
  y = np.arange(225)
  Y, X = np.meshgrid(y, x)
  values = df[&quot;Appearance_percentage&quot;].values
  values2d = np.reshape(values, (431, 225))
  ax.set_ylim(225, 0)
  
  plt.style.use('seaborn-white')
  ax.set_title('Mapa contour de probabilitat de trobar núvols')
  plt.contour(X, Y, values2d, 30, cmap='RdGy')
  plt.colorbar()
  plt.savefig(&quot;contourmap.png&quot;)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/THFak.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/THFak.png" alt="contour map" /></a></p>
  <p>I would like to know if I could fill the areas between the lines so that there are no white spaces in the color bar and the map is more attractive.</p>
  <p>I tried doing <code>df[&quot;Appearance_percentage_contourmap&quot;] = round(df[&quot;Appearance_percentage&quot;])</code> and then <code>values = df[&quot;Appearance_percentage_contourmap&quot;].values</code> and I'm still obtaining the same map with lots of white areas.</p>