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 | |
| 5 | set xrange[0:600] |
| 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 | #unset colorbox |
| 9 | |
| 10 | set multiplot layout 3,3 |
| 11 | set key off |
| 12 | set tics out scale 0.5,0.2 |
| 13 | |
| 14 | min(a, b) = (a < b ? a : b) |
| 15 | |
| 16 | # 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 |
| 17 | |
avm99963 | 0b3b407 | 2020-05-17 02:39:07 +0200 | [diff] [blame] | 18 | lastUpdated = system("tail -n 1 ".filesPrefix."TerresDeLEbre.dat | awk '{print $1;}'") |
| 19 | set title "Terres de l'Ebre\n{/*0.4 Última dada (punt negre): ".lastUpdated."}" |
avm99963 | 00a4003 | 2020-05-07 21:02:32 +0200 | [diff] [blame] | 20 | 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.'TerresDeLEbre.dat' u 2:3 w lp pt 6 lt rgb "black", "< tail -n 1 ".filesPrefix."TerresDeLEbre.dat" u 2:3 w lp pt 7 lt rgb "black" |
| 21 | |
avm99963 | 0b3b407 | 2020-05-17 02:39:07 +0200 | [diff] [blame] | 22 | lastUpdated = system("tail -n 1 ".filesPrefix."CampDeTarragona.dat | awk '{print $1;}'") |
| 23 | set title "Camp de Tarragona\n{/*0.4 Última dada (punt negre): ".lastUpdated."}" |
avm99963 | 00a4003 | 2020-05-07 21:02:32 +0200 | [diff] [blame] | 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.'CampDeTarragona.dat' u 2:3 w lp pt 6 lt rgb "black", "< tail -n 1 ".filesPrefix."CampDeTarragona.dat" u 2:3 w lp pt 7 lt rgb "black" |
| 25 | |
avm99963 | 0b3b407 | 2020-05-17 02:39:07 +0200 | [diff] [blame] | 26 | lastUpdated = system("tail -n 1 ".filesPrefix."AltPirineuAran.dat | awk '{print $1;}'") |
| 27 | set title "Alt Pirineu, Aran\n{/*0.4 Última dada (punt negre): ".lastUpdated."}" |
avm99963 | 00a4003 | 2020-05-07 21:02:32 +0200 | [diff] [blame] | 28 | 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.'AltPirineuAran.dat' u 2:3 w lp pt 6 lt rgb "black", "< tail -n 1 ".filesPrefix."AltPirineuAran.dat" u 2:3 w lp pt 7 lt rgb "black" |
| 29 | |
avm99963 | 0b3b407 | 2020-05-17 02:39:07 +0200 | [diff] [blame] | 30 | lastUpdated = system("tail -n 1 ".filesPrefix."Lleida.dat | awk '{print $1;}'") |
| 31 | set title "Lleida\n{/*0.4 Última dada (punt negre): ".lastUpdated."}" |
avm99963 | 00a4003 | 2020-05-07 21:02:32 +0200 | [diff] [blame] | 32 | 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.'Lleida.dat' u 2:3 w lp pt 6 lt rgb "black", "< tail -n 1 ".filesPrefix."Lleida.dat" u 2:3 w lp pt 7 lt rgb "black" |
| 33 | |
avm99963 | 0b3b407 | 2020-05-17 02:39:07 +0200 | [diff] [blame] | 34 | lastUpdated = system("tail -n 1 ".filesPrefix."Girona.dat | awk '{print $1;}'") |
| 35 | set title "Girona\n{/*0.4 Última dada (punt negre): ".lastUpdated."}" |
avm99963 | 00a4003 | 2020-05-07 21:02:32 +0200 | [diff] [blame] | 36 | 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.'Girona.dat' u 2:3 w lp pt 6 lt rgb "black", "< tail -n 1 ".filesPrefix."Girona.dat" u 2:3 w lp pt 7 lt rgb "black" |
| 37 | |
avm99963 | 0b3b407 | 2020-05-17 02:39:07 +0200 | [diff] [blame] | 38 | lastUpdated = system("tail -n 1 ".filesPrefix."CatalunyaCentral.dat | awk '{print $1;}'") |
| 39 | set title "Catalunya central\n{/*0.4 Última dada (punt negre): ".lastUpdated."}" |
avm99963 | 00a4003 | 2020-05-07 21:02:32 +0200 | [diff] [blame] | 40 | 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.'CatalunyaCentral.dat' u 2:3 w lp pt 6 lt rgb "black", "< tail -n 1 ".filesPrefix."CatalunyaCentral.dat" u 2:3 w lp pt 7 lt rgb "black" |
| 41 | |
avm99963 | 0b3b407 | 2020-05-17 02:39:07 +0200 | [diff] [blame] | 42 | lastUpdated = system("tail -n 1 ".filesPrefix."BarcelonaCiutat.dat | awk '{print $1;}'") |
| 43 | set title "Barcelona Ciutat\n{/*0.4 Última dada (punt negre): ".lastUpdated."}" |
| 44 | 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.'BarcelonaCiutat.dat' u 2:3 w lp pt 6 lt rgb "black", "< tail -n 1 ".filesPrefix."BarcelonaCiutat.dat" u 2:3 w lp pt 7 lt rgb "black" |
| 45 | |
| 46 | lastUpdated = system("tail -n 1 ".filesPrefix."MetropolitaSud.dat | awk '{print $1;}'") |
| 47 | set title "Metropolità Sud\n{/*0.4 Última dada (punt negre): ".lastUpdated."}" |
| 48 | 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.'MetropolitaSud.dat' u 2:3 w lp pt 6 lt rgb "black", "< tail -n 1 ".filesPrefix."MetropolitaSud.dat" u 2:3 w lp pt 7 lt rgb "black" |
| 49 | |
| 50 | lastUpdated = system("tail -n 1 ".filesPrefix."MetropolitaNord.dat | awk '{print $1;}'") |
| 51 | set title "Metropolità Nord\n{/*0.4 Última dada (punt negre): ".lastUpdated."}" |
| 52 | 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.'MetropolitaNord.dat' u 2:3 w lp pt 6 lt rgb "black", "< tail -n 1 ".filesPrefix."MetropolitaNord.dat" u 2:3 w lp pt 7 lt rgb "black" |
avm99963 | 00a4003 | 2020-05-07 21:02:32 +0200 | [diff] [blame] | 53 | |
| 54 | unset multiplot |