Bar chart - labeling the bars?

How do I show the *values* of the bars? I'm sorry if I'm

    > not using the right terminology. Thanks all!

You need to create text instances at the places you want the bar
labels -- something like

from pylab import figure, nx, show

width = 0.5
xs = nx.arange(7)
ys = nx.mlab.randn(7)+5

fig = figure()
ax = fig.add_subplot(111)
ax.bar(xs, ys, width=width)

for x,y in zip(xs, ys):
    ax.text(x+width/2., y, '%1.1f'%y, va='bottom', ha='center')

show()

John, that did the trick perfectly! Thanks a million!

-- Asheesh.

···

On Thu, 13 Jul 2006, John Hunter wrote:

for x,y in zip(xs, ys):
   ax.text(x+width/2., y, '%1.1f'%y, va='bottom', ha='center')

--
Tuesday After Lunch is the cosmic time of the week.