aboutsummaryrefslogtreecommitdiff
path: root/doc/peano-curve-n.plt
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-11-08 02:51:49 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-08 02:51:49 +0000
commit80893fa3e272d9792ba1206f7006e8defeeccb6e (patch)
tree1867dba062a481bf59313b0fbb16f416834a11a3 /doc/peano-curve-n.plt
downloadlab-02-master.tar.gz
publishHEADmaster
Diffstat (limited to 'doc/peano-curve-n.plt')
-rw-r--r--doc/peano-curve-n.plt47
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
3set term cairolatex pdf input \
4 blacktext mono notransparent nocrop \
5 size 7.5cm,7.5cm \
6 noheader
7
8set size ratio 1
9set lmargin at screen 0.1
10set rmargin at screen 0.9
11set bmargin at screen 0.0
12set tmargin at screen 0.95
13
14set output "./res/peano-curve-" . n . ".tex"
15
16# set title "Кривая Пеано на итерации $" . n . "$."
17set x2label "$x$"
18set y2label "{\\rotatebox{-90}{$y$}}"
19unset key
20set grid x mx y my
21set grid linestyle 1 palette frac 0.8
22set tics out
23set xtics .5/3**(n), 1./3**(n - 1), 1 - .5/3**(n)
24set ytics .5/3**(n), 1./3**(n - 1), 1 - .5/3**(n)
25set mxtics 3
26set mytics 3
27set format x ""
28set format y ""
29set xrange [0:1]
30set yrange [0:1]
31
32plot "./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
37set output "./res/peano-curve-" . n . "-enhanced.tex"
38
39# set title "Приближение кривой Пеано на итерации $" . n . "$."
40set xrange [1./3:2./3]
41set yrange [1./3:2./3]
42
43plot "./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