Bar chart with color map

Hello,

I am generating a bar chart following the code in this example:
http://matplotlib.sourceforge.net/examples/pylab_examples/barh_demo.html.

I am wondering if it is possible to have bar with a colormap (using
http://matplotlib.sourceforge.net/examples/pylab_examples/show_colormaps.html).
The only piece of code I found close to this is this example:
http://matplotlib.sourceforge.net/examples/api/colorbar_only.html.

Thanks for your help,
Sylvain.

Hello,

I am generating a bar chart following the code in this example:
http://matplotlib.sourceforge.net/examples/pylab_examples/barh_demo.html.

I am wondering if it is possible to have bar with a colormap (using
http://matplotlib.sourceforge.net/examples/pylab_examples/show_colormaps.html).
The only piece of code I found close to this is this example:
http://matplotlib.sourceforge.net/examples/api/colorbar_only.html.

Thanks for your help,
Sylvain.