diff options
| author | 2026-11-08 02:51:49 +0000 | |
|---|---|---|
| committer | 2026-11-08 02:51:49 +0000 | |
| commit | 80893fa3e272d9792ba1206f7006e8defeeccb6e (patch) | |
| tree | 1867dba062a481bf59313b0fbb16f416834a11a3 /doc/peano-curve-n.plt | |
| download | lab-02-80893fa3e272d9792ba1206f7006e8defeeccb6e.tar.gz | |
Diffstat (limited to 'doc/peano-curve-n.plt')
| -rw-r--r-- | doc/peano-curve-n.plt | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/doc/peano-curve-n.plt b/doc/peano-curve-n.plt new file mode 100644 index 0000000..e75b44f --- /dev/null +++ b/doc/peano-curve-n.plt | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | # peano-curve-n.plt --- Plot n-th iteration of Peano curve and it's 3x magnification -*- Gnuplot -*- | ||
| 2 | |||
| 3 | set term cairolatex pdf input \ | ||
| 4 | blacktext mono notransparent nocrop \ | ||
| 5 | size 7.5cm,7.5cm \ | ||
| 6 | noheader | ||
| 7 | |||
| 8 | set size ratio 1 | ||
| 9 | set lmargin at screen 0.1 | ||
| 10 | set rmargin at screen 0.9 | ||
| 11 | set bmargin at screen 0.0 | ||
| 12 | set tmargin at screen 0.95 | ||
| 13 | |||
| 14 | set output "./res/peano-curve-" . n . ".tex" | ||
| 15 | |||
| 16 | # set title "Кривая Пеано на итерации $" . n . "$." | ||
| 17 | set x2label "$x$" | ||
| 18 | set y2label "{\\rotatebox{-90}{$y$}}" | ||
| 19 | unset key | ||
| 20 | set grid x mx y my | ||
| 21 | set grid linestyle 1 palette frac 0.8 | ||
| 22 | set tics out | ||
| 23 | set xtics .5/3**(n), 1./3**(n - 1), 1 - .5/3**(n) | ||
| 24 | set ytics .5/3**(n), 1./3**(n - 1), 1 - .5/3**(n) | ||
| 25 | set mxtics 3 | ||
| 26 | set mytics 3 | ||
| 27 | set format x "" | ||
| 28 | set format y "" | ||
| 29 | set xrange [0:1] | ||
| 30 | set yrange [0:1] | ||
| 31 | |||
| 32 | plot "./res/peano-curve-" . n . ".dat" using ($1/$2):($3/$4) \ | ||
| 33 | with linespoints \ | ||
| 34 | linetype 1 linewidth 1 \ | ||
| 35 | pointtype 1 pointsize 5./3**n | ||
| 36 | |||
| 37 | set output "./res/peano-curve-" . n . "-enhanced.tex" | ||
| 38 | |||
| 39 | # set title "Приближение кривой Пеано на итерации $" . n . "$." | ||
| 40 | set xrange [1./3:2./3] | ||
| 41 | set yrange [1./3:2./3] | ||
| 42 | |||
| 43 | plot "./res/peano-curve-" . n . ".dat" using ($1/$2):($3/$4) \ | ||
| 44 | with linespoints \ | ||
| 45 | linetype 1 linewidth 1 \ | ||
| 46 | pointtype 1 pointsize 3*5./3**n | ||
| 47 | # peano-curve-n.plt ends here | ||
