From: PGM <pgm...@gm...> - 2006-07-13 18:40:02
|
On Thursday 13 July 2006 14:05, Asheesh Laroia wrote: > I'm making a bar chart that shows percentages (values from 0 to 100), and > I'd like to have the actual bars labeled with their values. > > I don't see how to do this, though it seems that countour diagrams have > the clabel() function to do this. Is it possible with matplotlib? Vertical bars, I assume ? Please check the screenshot page: http://matplotlib.sourceforge.net/screenshots/barchart_demo.py should be a big help. You can find other examples here http://matplotlib.sourceforge.net/matplotlib_examples_0.87.1.zip. If you're into OOP, check the "set_xticklabels" command. |