title: Matplotlib plot with variable line width
body: <p>Is it possible to plot a line with variable line width in matplotlib?  For example:</p>
  
  <pre><code>from pylab import *
  x = [1, 2, 3, 4, 5]
  y = [1, 2, 2, 0, 0]
  width = [.5, 1, 1.5, .75, .75]
  
  plot(x, y, linewidth=width)
  </code></pre>
  
  <p>This doesn't work because <em>linewidth</em> expects a scalar.</p>
  
  <p><em>Note:</em> I'm aware of *fill_between()* and *fill_betweenx()*.  Because these only fill in x or y direction, these do not do justice to cases where you have a slanted line.  It is desirable for the fill to always be normal to the line.  That is why a variable width line is sought.  </p>