title: Filling an area below a curve with a colormap defined by the function of the curve
body: <p>Consider the following plot:</p>
  
  <p><a href="https://i.stack.imgur.com/aoEIF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aoEIF.png" alt="enter image description here"></a></p>
  
  <p>On the left you can see the fill of a circle with respect to a profile of a function using <code>patch</code> command</p>
  
  <pre><code>t = linspace(-pi,pi,100);
  c = exp(-cos(t));
  figure(1)
  patch(cos(t),sin(t),c)
  axis equal
  </code></pre>
  
  <p>On the right you see the profile of the function along the dashed line axis on the left, which is filled using the <code>area</code> command.</p>
  
  <pre><code>figure(2)
  area(cos(t),c,0);
  </code></pre>
  
  <p>what I'm trying to do is fill the area below the curve (right panel) with the colors defined by the colormap of the representation in the left panel. The results should look like this
  <a href="https://i.stack.imgur.com/9pxeG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9pxeG.png" alt="enter image description here"></a></p>