-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot_4_site.py
More file actions
32 lines (25 loc) · 928 Bytes
/
plot_4_site.py
File metadata and controls
32 lines (25 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import matplotlib.pyplot as plt
import pandas as pd
data1=pd.read_excel('hasilcput.xlsx', 'hasilcput')
data2=pd.read_excel('hasilcpon.xlsx', 'hasilcpon')
data3=pd.read_excel('hasilcktp.xlsx', 'hasilcktp')
data4=pd.read_excel('hasilcbas.xlsx', 'hasilcbas')
plt.subplot(4,1,1)
plt.plot(data1['hari'], data1['PW(mm)'], 'r', label='Putussibau')
plt.title('PWV September 2021')
plt.ylabel('PWV (mm)')
plt.legend(loc='upper left', frameon=False)
plt.subplot(4,1,2)
plt.plot(data2['hari'], data2['PW(mm)'], 'y', label='Pontianak')
plt.ylabel('PWV (mm)')
plt.legend(loc='upper left', frameon=False)
plt.subplot(4,1,3)
plt.plot(data3['hari'], data3['PW(mm)'], 'g', label='Ketapang')
plt.ylabel('PWV (mm)')
plt.legend(loc='upper left', frameon=False)
plt.subplot(4,1,4)
plt.plot(data4['hari'], data4['PW(mm)'], 'b', label='Paloh')
plt.xlabel('Tanggal')
plt.ylabel('PWV (mm)')
plt.legend(loc='upper left', frameon=False)
plt.show()