how to display value for each date in line chart or pie chart? (show y axis's value)

i want to display the value for each date , now i have 3 date value , but in
chart it cannot show the value,
in line chart want to show 12,45,67 value

in pie chart now it can show value ,but have a "%" char after value , i want
to only show the value ,i don't know how to change the function
autopct='%1.f%%'

Thanks

source
figure(2)
x=[4,5,6]
y=[12,45,67]
line,= plt.plot(x,y,label="aaa",color="red",linewidth=1,linestyle='|dashed',
marker='o',c='b')
xticks(arange(13), calendar.month_name[0:13], rotation=11)
plt.ylabel("WDR",fontsize=12, color='r')
plt.title("Price",fontsize=16, color='r')
plt.xlim(1,12)
plt.ylim(1,100,1)
plt.grid(True)
plt.legend()

pie
figure(1, figsize=(6,6))
ax = axes([0.1, 0.1, 0.8, 0.8])
labels = 'Frogs', 'Hogs', 'Dogs', 'Logs'
fracs = [15,30,45, 10]
explode=(0, 0.05, 0, 0)
patches = pie(fracs, explode=explode, labels=labels, autopct='%1.f%%',
shadow=True)
legend(('Incomplete', 'Gap','Miss','Invalid'),loc=(0,-.05))
title('Raining Hogs and Dogs', bbox={'facecolor':'0.8', 'pad':5})
savefig('KPIChar/test.png',dpi=80)
show()

···


View this message in context: http://old.nabble.com/how-to-display-value-for-each-date-in-line-chart-or-pie-chart--(show-y-axis's-value)-tp28406803p28406803.html
Sent from the matplotlib - users mailing list archive at Nabble.com.