floating bar chart?

I looked through the gallery, but didn't see this one and am not sure
how to create it. It would be a "floating bar chart" (or floating
column chart), like what is seen here:

http://peltiertech.com/Excel/pix1/BloodSugarFloater.gif

Thanks,
Che

C M, on 2011-01-24 16:27, wrote:

I looked through the gallery, but didn't see this one and am not sure
how to create it. It would be a "floating bar chart" (or floating
column chart), like what is seen here:

http://peltiertech.com/Excel/pix1/BloodSugarFloater.gif

Hi Che,

just specify the 'bottom' keyword argument to bar. Note that the
second parameter is height of the bar, *not* the top of the bar

plt.bar([1,2,3,4], [2,2.5,5,3], bottom=[0,-1,1,2])

best,

···

--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7

Thanks, Paul! Easy enough.

-Che

···

On Mon, Jan 24, 2011 at 4:42 PM, Paul Ivanov <pivanov314@...287...> wrote:

C M, on 2011-01-24 16:27, wrote:

I looked through the gallery, but didn't see this one and am not sure
how to create it. It would be a "floating bar chart" (or floating
column chart), like what is seen here:

http://peltiertech.com/Excel/pix1/BloodSugarFloater.gif

Hi Che,

just specify the 'bottom' keyword argument to bar. Note that the
second parameter is height of the bar, *not* the top of the bar

plt.bar([1,2,3,4], [2,2.5,5,3], bottom=[0,-1,1,2])

best,
--
Paul Ivanov