Plotting vertical bars of arbitrary, non-uniform widths

Hi,

As I needed to plot a(n?) histogram with bins of non-uniform widths, I
found that pylab.barh() was doing just what I needed, but in the wrong
direction. Therefore, I wrote its twin sister, Axes.barv(), based on
Axes.barh(). The patch included in this mail is against axes.py from
matplotlib 0.80.

I also wrote an example script for it. In order to use the pylab API
normally, I included at the top of that script a barv() function that
calls Axes.barv() on gca(), just as pylab.barh() does. Looking at
pylab.py, this function should be automatically generated from
boilerplate.py (I don't know how exactly), so if Axes.barv() is properly
included in axes.py, the barv() definition in the example script should
be suppressed, of course.

Have fun.

axes.py.barv-patch (3.45 KB)

barv_demo.py (1.5 KB)