blob: 667a9c640263ca3fd8410fe3f8f701df36ce1c72 [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#unset colorbox
9
10set multiplot layout 3,3
11set key off
12set tics out scale 0.5,0.2
13
14min(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
avm999630b3b4072020-05-17 02:39:07 +020018lastUpdated = system("tail -n 1 ".filesPrefix."TerresDeLEbre.dat | awk '{print $1;}'")
19set title "Terres de l'Ebre\n{/*0.4 Última dada (punt negre): ".lastUpdated."}"
avm9996300a40032020-05-07 21:02:32 +020020plot 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
avm999630b3b4072020-05-17 02:39:07 +020022lastUpdated = system("tail -n 1 ".filesPrefix."CampDeTarragona.dat | awk '{print $1;}'")
23set title "Camp de Tarragona\n{/*0.4 Última dada (punt negre): ".lastUpdated."}"
avm9996300a40032020-05-07 21:02:32 +020024plot 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
avm999630b3b4072020-05-17 02:39:07 +020026lastUpdated = system("tail -n 1 ".filesPrefix."AltPirineuAran.dat | awk '{print $1;}'")
27set title "Alt Pirineu, Aran\n{/*0.4 Última dada (punt negre): ".lastUpdated."}"
avm9996300a40032020-05-07 21:02:32 +020028plot 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
avm999630b3b4072020-05-17 02:39:07 +020030lastUpdated = system("tail -n 1 ".filesPrefix."Lleida.dat | awk '{print $1;}'")
31set title "Lleida\n{/*0.4 Última dada (punt negre): ".lastUpdated."}"
avm9996300a40032020-05-07 21:02:32 +020032plot 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
avm999630b3b4072020-05-17 02:39:07 +020034lastUpdated = system("tail -n 1 ".filesPrefix."Girona.dat | awk '{print $1;}'")
35set title "Girona\n{/*0.4 Última dada (punt negre): ".lastUpdated."}"
avm9996300a40032020-05-07 21:02:32 +020036plot 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
avm999630b3b4072020-05-17 02:39:07 +020038lastUpdated = system("tail -n 1 ".filesPrefix."CatalunyaCentral.dat | awk '{print $1;}'")
39set title "Catalunya central\n{/*0.4 Última dada (punt negre): ".lastUpdated."}"
avm9996300a40032020-05-07 21:02:32 +020040plot 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
avm999630b3b4072020-05-17 02:39:07 +020042lastUpdated = system("tail -n 1 ".filesPrefix."BarcelonaCiutat.dat | awk '{print $1;}'")
43set title "Barcelona Ciutat\n{/*0.4 Última dada (punt negre): ".lastUpdated."}"
44plot 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
46lastUpdated = system("tail -n 1 ".filesPrefix."MetropolitaSud.dat | awk '{print $1;}'")
47set title "Metropolità Sud\n{/*0.4 Última dada (punt negre): ".lastUpdated."}"
48plot 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
50lastUpdated = system("tail -n 1 ".filesPrefix."MetropolitaNord.dat | awk '{print $1;}'")
51set title "Metropolità Nord\n{/*0.4 Última dada (punt negre): ".lastUpdated."}"
52plot 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"
avm9996300a40032020-05-07 21:02:32 +020053
54unset multiplot