blob: 860ec4e36495548eb5619bae2aafd615410c1176 [file] [log] [blame]
avm9996300a40032020-05-07 21:02:32 +02001set xlabel "Casos actius per 10^5 habitants"
2set ylabel "Mitjana taxa de creixement darrers 7 dies"
3set title font "Helvetica,20"
4
avm99963821c1662020-07-08 16:30:46 +02005set xrange[0:410]
avm9996300a40032020-05-07 21:02:32 +02006set yrange[0:5]
avm99963c3d85982020-05-07 21:27:30 +02007set samples 400
avm9996300a40032020-05-07 21:02:32 +02008
9set multiplot layout 3,3
10set key off
11set tics out scale 0.5,0.2
12
13min(a, b) = (a < b ? a : b)
14
avm999634f0952b2020-07-12 21:16:56 +020015n = 9
16array fileNames[n] = ["TerresDeLEbre.dat", "CampDeTarragona.dat", "AltPirineuAran.dat", "Lleida.dat", "Girona.dat", "CatalunyaCentral.dat", "BarcelonaCiutat.dat", "MetropolitaSud.dat", "MetropolitaNord.dat"]
17array prettyNames[n] = ["Terres de l'Ebre", "Camp de Tarragona", "Alt Pirineu, Aran", "Lleida", "Girona", "Catalunya central", "Barcelona ciutat", "Metropolità sud", "Metropolità nord"]
18
avm9996300a40032020-05-07 21:02:32 +020019# The different colored areas correspond to the classification of the EPG values defined on page 8 at https://biocomsc.upc.edu/en/shared/20200506_report_web_51.pdf
20
avm999634f0952b2020-07-12 21:16:56 +020021do for [i = 1:n] {
22 lastUpdated = system("tail -n 1 ".filesPrefix.fileNames[i]." | awk '{print $1;}'")
23 set title prettyNames[i]."\n{/*0.4 Última dada (punt negre): ".lastUpdated."}"
24 plot 6*x w filledcurve y1=0 lt rgb "#ff9494", 100/x w filledcurve y1=0 lt rgb "#ffe494", 70/x w filledcurve y1=0 lt rgb "#dbff94", 30/x w filledcurve y1=0 lt rgb "#a0ff94", filesPrefix.fileNames[i] u 2:3 w lp pt 6 lt rgb "black", "< tail -n 1 ".filesPrefix.fileNames[i] u 2:3 w lp pt 7 lt rgb "black"
25}
avm9996300a40032020-05-07 21:02:32 +020026
27unset multiplot