1 | #!/usr/bin/gnuplot -persist
|
---|
2 | #
|
---|
3 | # Weergave van PM10 en PM2.5 luftdaten CSV informatie op grafiek gebaseerd op
|
---|
4 | # style van https://www.luchtmeetnet.nl/
|
---|
5 | #
|
---|
6 | # Rick van der Zwet <info@rickvanderzwet.nl>
|
---|
7 | #
|
---|
8 |
|
---|
9 | # Graph annotation
|
---|
10 | set xdata time
|
---|
11 | set format x "%D\n%H:%M" timedate
|
---|
12 | set ylabel "{/Symbol m}g/m3"
|
---|
13 | set title "Fijnstof concentraties, 2382 BW, Zoeterwoude"
|
---|
14 |
|
---|
15 | # Graph formatting
|
---|
16 | set grid front lw 2
|
---|
17 | set terminal qt size 1920,1080
|
---|
18 | set key opaque
|
---|
19 |
|
---|
20 | # Match CSV input format
|
---|
21 | set timefmt "%Y/%m/%d %H:%M:%S"
|
---|
22 | set datafile separator ";"
|
---|
23 |
|
---|
24 | # Plot entries
|
---|
25 | set xrange ["2019/12/31 18:00:00":"2020/01/03 00:00:00"]
|
---|
26 | set yrange [0:2100]
|
---|
27 | plot 30 with filledcurves above y1=0 fs solid 1.00 lc rgb "#96C8FF" title "Goed (PM10)", \
|
---|
28 | 75 with filledcurves above y1=30 fs solid 1.00 lc rgb "#FFFFC8" title "Matig (PM10)", \
|
---|
29 | 100 with filledcurves above y1=75 fs solid 1.00 lc rgb "#FFC800" title "Onvoldoende (PM10)", \
|
---|
30 | 200 with filledcurves above y1=100 fs solid 1.00 lc rgb "#FF6464" title "Slecht (PM10)", \
|
---|
31 | 5000 with filledcurves above y1=200 fs solid 1.00 lc rgb "#C864FF" title "Zeer Slecht (PM10)", \
|
---|
32 | 'jaarwisseling-2019-2020.csv' every ::1 using 1:8 with lines lw 2 title "PM10", \
|
---|
33 | '' using 1:9 with lines lw 2 title "PM2.5"
|
---|