avm99963 | 73e1314 | 2020-08-31 01:59:30 +0200 | [diff] [blame] | 1 | num = system("cat ".graphDataFile." | wc -l") |
| 2 | |
| 3 | startGray = 0; |
| 4 | endGray = 0.5; |
| 5 | |
| 6 | set palette model RGB functions startGray + (endGray - startGray)*(1 - gray), startGray + (endGray - startGray)*(1 - gray), startGray + (endGray - startGray)*(1 - gray) |
| 7 | set cbrange [0:(num - 1)] |
| 8 | unset colorbox |
| 9 | |
| 10 | set title graphTitle."\n{/*0.4 Ăšltima dada (punt blau): ".lastUpdated."}" |
| 11 | 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", graphDataFile u 2:3:4 w lp lc palette pt 2 ps 0.5, "< tail -n 1 ".graphDataFile u 2:3 w lp pt 7 ps 0.7 lt rgb "#002991" |