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 | 965cba7 | 2020-07-21 10:22:34 +0200 | [diff] [blame] | 5 | set xrange[0:675] |
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;}'") |
avm99963 | c3b457a | 2020-07-21 14:23:15 +0200 | [diff] [blame] | 23 | graphTitle = prettyNames[i] |
| 24 | graphDataFile = filesPrefix.fileNames[i] |
| 25 | load "includes/plotSingleGraph.gnu" |
avm99963 | 4f0952b | 2020-07-12 21:16:56 +0200 | [diff] [blame] | 26 | } |
avm99963 | 00a4003 | 2020-05-07 21:02:32 +0200 | [diff] [blame] | 27 | |
| 28 | unset multiplot |