Hello, I have a question regarding autolabels for bar charts. It seems that the pie charts have already incorporated such a functionality [1]. Is there any reason why this isn't built in the bar chart function [2]?
The function I am referring to is: def autolabel(rects): # attach some text labels for rect in rects: #~ print rect height = rect.get_height() print height ax.text(rect.get_x()+rect.get_width()/2., 1.05*height, '%d'%int(height), ha='center', va='bottom') Thanks in advance for the clarification, Timmie [1] http://matplotlib.sourceforge.net/examples/pylab_examples/pie_demo.html?highlight=autolabel [2] http://matplotlib.sourceforge.net/examples/api/barchart_demo.html?highlight=autolabel ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users