matplotlib: continuous colormap fill between two lines

Viewed 12170

It's possible to fill between lines with a color:

http://matplotlib.sourceforge.net/examples/pylab_examples/fill_between_demo.html

It's also possible to use a continuous colormap for a line:

http://matplotlib.sourceforge.net/examples/pylab_examples/multicolored_line.html

Is it possible (and reasonably easy) to use a continuous colormap for the colored fill between two lines? For example, the color fill may change along x based on the difference between the two lines at x (or based on another set of data).

2 Answers
Related