avm99963 | 00a4003 | 2020-05-07 21:02:32 +0200 | [diff] [blame] | 1 | set xlabel "Casos actius per 10^5 habitants" |
| 2 | set ylabel "Mitjana taxa de creixement darrers 7 dies" |
| 3 | set title font "Helvetica,20" |
| 4 | |
avm99963 | cb3737f | 2020-07-13 13:39:18 +0200 | [diff] [blame^] | 5 | set xrange[0:500] |
avm99963 | 00a4003 | 2020-05-07 21:02:32 +0200 | [diff] [blame] | 6 | set yrange[0:5] |
avm99963 | c3d8598 | 2020-05-07 21:27:30 +0200 | [diff] [blame] | 7 | set samples 400 |
avm99963 | 00a4003 | 2020-05-07 21:02:32 +0200 | [diff] [blame] | 8 | |
| 9 | set multiplot layout 3,3 |
| 10 | set key off |
| 11 | set tics out scale 0.5,0.2 |
| 12 | |
| 13 | min(a, b) = (a < b ? a : b) |
| 14 | |
avm99963 | 4f0952b | 2020-07-12 21:16:56 +0200 | [diff] [blame] | 15 | n = 9 |
| 16 | array fileNames[n] = ["TerresDeLEbre.dat", "CampDeTarragona.dat", "AltPirineuAran.dat", "Lleida.dat", "Girona.dat", "CatalunyaCentral.dat", "BarcelonaCiutat.dat", "MetropolitaSud.dat", "MetropolitaNord.dat"] |
| 17 | array prettyNames[n] = ["Terres de l'Ebre", "Camp de Tarragona", "Alt Pirineu, Aran", "Lleida", "Girona", "Catalunya central", "Barcelona ciutat", "Metropolità sud", "Metropolità nord"] |
| 18 | |
avm99963 | 00a4003 | 2020-05-07 21:02:32 +0200 | [diff] [blame] | 19 | # 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 | |
avm99963 | 4f0952b | 2020-07-12 21:16:56 +0200 | [diff] [blame] | 21 | do 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 | } |
avm99963 | 00a4003 | 2020-05-07 21:02:32 +0200 | [diff] [blame] | 26 | |
| 27 | unset multiplot |