Thursday, June 13, 2013

tugas probstat

import pylab as p
fig = p.figure()
ax = fig.add_subplot(1,1,1)
y = [6.577, 6.850, 9.959, 4.813, 6.052]
N = len(y)
ind = range(N)
err = [1.3, 1.6, 2.5, 1.2, 2.0]
ax.bar(ind, y, facecolor='#9400D3', 
       align='center', yerr=err, ecolor='purple')
ax.set_ylabel('jumlah (ratus ribu)')
ax.set_title('Jumlah Tindak Pidana di lampung, 2007 - 2011 ',fontstyle='italic')
ax.set_xticks(ind)
group_labels = ['2007', '2008',
                     '2009', '2010',
                     '2011']
ax.set_xticklabels(group_labels)
fig.autofmt_xdate()
p.show()






No comments:

Post a Comment