bar charts (Margherita Vittone wiersma)

align='center' gives an error....

Also this solution is not perfect for negative bars as
the text is located just *inside* the bar, rather than
just *below* it.

Yannick Copin <y.copin@...671...> 01/26/07 4:08 PM >>>

Hi,

i have made bar charts but I was wondering if there is a way to show
on top of each bar the real content/counts, like a label; I generate
static plots so the dynamic showing of the counts on focusing on the
bar does not help me.

Cannot you just add the counts manually? E.g.

x,y = arange(5),randn(5)
bar(x,y, align='center')
for i in range(5):
     text(x[i],y[i],'%f' % y[i], horizontalalignment='center')

Cheers.

···

--
             / \ , ,
   _._ _ |oo| _ / \__/ \
  _|||| ((/ () \)) / \ Yannick COPIN (o:>* Doctus cum libro
  >>>>>/| ( ==== ) |oo| Institut de physique nucleaire de Lyon
   \____/ _`\ /'_ / \ (IN2P3 - France)
   / /.-' /\<>/\ `\.( () )_._ Tel: (33/0) 472 431 968
   > ` / \/ \ /`'--'////) http://snovae.in2p3.fr/ycopin/
    \__,-'`| |. |\/ |/\/\|"\"` AIM: YcCopin ICQ: 236931013
       jgs | |. | \___/\___/
           > >. | | |

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net

--
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.

CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html

CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html

For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
CallCentre@...1230...

This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean.