Jumat, 14 Juni 2013

tugas probabilitas

sintax

import pylab as p
fig = p.figure()
ax = fig.add_subplot(1,1,1)
y = [12.43, 11.82, 12.34, 11.01, 10.60]
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')
ax.set_title('Persentase Penduduk Buta Huruf di kalimantan barat, 2003-2007 ',fontstyle='italic')
ax.set_xticks(ind)
group_labels = ['2003', '2004',
                     '2005', '2006',
                     '2007']
ax.set_xticklabels(group_labels)
fig.autofmt_xdate()
p.show()



Tidak ada komentar:

Posting Komentar