Jumat, 14 Juni 2013

TUGAS PROBSTAT

NAMA : M.ARIF SOFYAN
NPM    : 1215031046
KELAS: B

sumber di dapat dari klik disini.

DATA INDEKS PEMBANGUNAN MANUSIA

tahun     jambi    sumsel    bkl    nasional
2004    70.10        69.6    69.90    68.7
2005    70.95       70.23    71.09    69.57
2006    71.29       71.09    71.28    70.1
2007    71.46        71.4    71.57    70.59
2008    71.99       72.05    72.14    71.17
2009    72.45        72.61    72.55    71.76
2010    72.74        72.95    72.92    72.27
2011    72.30        73.42    73.40    72.77

SYNTAX PHYTON

#M.Arif Sofyan
#1215031046

"""
tentang indeks pembangunan manusia provinsi jambi, sumsel, bengkulu data 2004 - 2011 terhadap nasional
data from http://www.bappenas.go.id/proto-bappenas/file-uploads/1.Buku_Datin_Kinerja_Pembangunan_2004-2012B.pdf
"""

import matplotlib.pyplot as plt
import numpy as np
import datetime

somedates, jambi, sumsel, bengkulu, nasional = np.loadtxt('IPM1.txt',skiprows=1,unpack=True)

xdates = [datetime.datetime.strptime(str(int(date)),'%Y') for date in somedates]

fig = plt.figure()
ax = plt.subplot(111)
plt.plot(xdates, jambi,'o-',label='Jambi')
plt.plot(xdates, sumsel,'o-',label='Sumatra Selatan')
plt.plot(xdates, bengkulu, 'o-',label='Bengkulu')
plt.plot(xdates, nasional,'o-',label='Nasional')
plt.legend(loc=4)
plt.ylabel('Indeks Pembangunan Manusia')
plt.xlabel('Tahun')
plt.grid()
plt.savefig('dates-tutorial01.png')
plt.show()


GRAFIK INDEKS PEMBANGUNAN MANUSIA


Tidak ada komentar:

Posting Komentar