Nama :Windu Nur Hardiranto
NPM : 1215031077
Kelas : A
Sumber data:
http://www.bps.go.id/tab_sub/view.php?kat=1&tabel=1&daftar=1&id_subyek=12¬ab=4
Programnya:
import matplotlib.pyplot as plt
alphab = ['1971', '1980', '1990', '1995', '2000', '2005', '2010']
frequencies = [96.79, 99.12, 100.51, 100.82, 102.10, 102.71, 103.60 ]
pos = np.arange(len(alphab))
width = 0.8
ax = plt.axes()
ax.set_xticks(pos + (width / 2))
ax.set_xticklabels(alphab)
plt.title("Rasio Jenis Kelamin Menurut Provinsi 1971, 1980, 1990, 1995, 2000, 2005, 2010")
plt.xlabel("Tahun")
plt.ylabel("Jumlah")
plt.bar(pos, frequencies, width, color='r')
plt.show()
Tabelnya :