File:2021.11.28.Rdd.png
Jump to navigation
Jump to search
Size of this preview: 799 × 208 pixels. Other resolutions: 320 × 83 pixels | 1,274 × 332 pixels.
Original file (1,274 × 332 pixels, file size: 80 KB, MIME type: image/png)
Summary
Daily death tall due to Covid at Russia versus time (days) and the linear approximations:
pessimistic (red). intermediate (green) and optimistic (blue).
Source of data: https://covid.ourworldindata.org/data/owid-covid-data.csv
source of table:
grep Russia owid-covid-data.csv |cut -d, -f 3,4,9 > 00.dat
Other versions
Закручивать шурупы стамеской, конечно, лучше, чем забивать их молотком.
А ещё, я подозреваю, существуют отвертки...
Generator
<!DOCTRINE html><html><body><small><small> <?php //echo "Hello!"; $j0=juliantojd(2, 15, 2020); for($t=0;$t<1001;$t++) $P[$t]=0; $myfile = fopen("00.dat", "r") or die("Unable to open file!"); for($i=0;$i<1001;$i++) { $g=fgets($myfile); // $h=split(",",trim($g)); $h=explode(",",trim($g)); $s=count($h); if($s<2) goto nomore; $s=strlen($h[2]); // $f=split("-",$h[1]); $j=juliantojd($f[1], $f[2], $f[0]); $f=explode("-",$h[1]); $j=juliantojd($f[1], $f[2], $f[0]); if($s>1){ $t=$j-$j0; // echo "$h[1] $t $h[2] "; $u=sscanf($h[2],"%d"); $v=$u[0]; // echo $v,"<br>\n"; $P[$t]=$v; } } nomore: fclose($myfile); $T=$t; echo "Daily tall for T=$T days<br>"; // for($t=0;$t<$T;$t++) { echo "$t,$P[$t] <br>" ;} echo '<svg width="852" height="230">'; $L=36; $B=208; $j0=juliantojd(2, 15, 2020); for($y=0;$y<201;$y+=50) { $x1=$L; $x2=$L+800; $Y=$B-$y; echo "<line x1=$x1 y1=$Y x2=$x2 y2=$Y stroke='black' stroke-width='.5'/>\n";} $y=2000; $Y=$B+4-$y/10; echo "<text transform='translate(0,$Y)'>2000 </text> \n"; $y=1000; $Y=$B+4-$y/10; echo "<text transform='translate(0,$Y)'>1000 </text> \n"; $y=0 ; $Y=$B+4-$y/10; echo "<text text-anchor='end' transform='translate(30,$Y)'> 0 </text> \n"; for($t=0;$t<801;$t+=10){$X=$L+$t; $Y1=$B; $Y2=$B-200; echo "<line x1=$X y1=$Y1 x2=$X y2=$Y2 stroke='black' stroke-width='.5'/>\n"; } $B4=$B+4; for($t=0;$t<801;$t+=50) { $X=$L+$t; $X1=$L+$t+1; $Xp=$X+5; $j=$j0+$t; $d0=jdtojulian($j); $d1=explode("/",$d0); $text=sprintf("%04d.%02d.%02d",$d1[2],$d1[0],$d1[1]); $tex=sprintf("%d",$t); echo "<line x1=$X y1=30 x2=$X y2=$B4 stroke='RGB(255,0,255)' stroke-width='.8' />\n"; echo "<text text-anchor='middle' transform='translate($Xp,150) rotate(-90)'>$text</text> \n"; echo "<text text-anchor='middle' transform='translate($X1,220)'>$tex</text> \n"; } echo "<polyline points='\n"; for($t=0;$t<$T;$t++) { $X=$L+$t; $Y=$B - 0.1 * $P[$t]; echo "$X,$Y "; } echo "'"; echo " style='fill:none;stroke:#400;stroke-width:2' /> \n"; $X1=$L; $Y1=$B; $X2=$L+800; $Y2=$B-800*.2; echo "<line x1=$X1 y1=$Y1 x2=$X2 y2=$Y2 stroke='RGB(255,0,0)' stroke-width='1' />\n"; $X1=$L; $Y1=$B; $X2=$L+800; $Y2=$B-800*.1; echo "<line x1=$X1 y1=$Y1 x2=$X2 y2=$Y2 stroke='#0A0' stroke-width='1' />\n"; $X1=$L+50; $Y1=$B; $X2=$L+50+750; $Y2=$B-750*.05; echo "<line x1=$X1 y1=$Y1 x2=$X2 y2=$Y2 stroke='#00F' stroke-width='1' />\n"; echo "</svg>"; ?> </body> </html>
References
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 17:08, 3 December 2021 | 1,274 × 332 (80 KB) | T (talk | contribs) | == Summary == Daily death tall due to Covid at Russia versus time (days) and the linear approximations: pessimistic (red). intermediate (green) and optimistic (blue). Source of data: https://covid.ourworldindata.org/data/owid-covid-data.csv sour... |
You cannot overwrite this file.
File usage
There are no pages that use this file.