title: How to assign RGB color values to grid mesh with matplotlib
body: <p>Please consider this simplified snippet:</p>
  
  <pre><code>import numpy as np
  
  x = np.arange(3)
  y = np.arange(2)
  
  X, Y = np.meshgrid(x,y)
  </code></pre>
  
  <p>I would like to assign already prepared color values to every grid cell.
  I have color values of same shape as XY grid for every RGB channel as normalized RGB values - so it's 3 numpy arrays each consisting of 0 to 1 float, representing channel value</p>
  
  <p>I first tried with <a href="http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.pcolor">matplotlib.pyplot.pcolor</a> as it seems like exact tool for what I want, but I can’t understand how color mapping is done.  </p>
  
  <p>It seems that color array (C in documentation) is mapped on default (or assigned manually) colormap, but I can’t get the logic of values in this color array and it’s role.<br>
  If values are mapped on default (or assigned) colormap from grid cell value, what is the purpose then of C color array?<br>
  I made this C array by hand for above example (2x1 numpy array), but regardless of it values I get same colors that seems dependent only on grid cell value and not values in this C array.</p>
  
  <p>So I’m confused here and ask for kind help, which does not necessarily need to be explanation of this pcolor function, but maybe what is the right way to assign color values to grid mesh with matplotlib</p>