diff --git a/Band5/Band5.typ b/Band5/Band5.typ index f6fed0d..3865062 100644 --- a/Band5/Band5.typ +++ b/Band5/Band5.typ @@ -237,4 +237,75 @@ scale(x: 90%, y: 90%, reflow: true, EC_drawing2) }, caption: [], -) \ No newline at end of file +) + + + #figure( + { + set math.equation(numbering: none) + scale(x: 90%, y: 90%, reflow: true, test-case) + }, + caption: [], +) + + + #figure( + { + set math.equation(numbering: none) + scale(x: 90%, y: 90%, reflow: true, test-case2) + }, + caption: [], +) + + #figure( + { + set math.equation(numbering: none) + scale(x: 90%, y: 90%, reflow: true, test-case3) + }, + caption: [], +) + + #figure( + { + set math.equation(numbering: none) + scale(x: 90%, y: 90%, reflow: true, test-case4) + }, + caption: [], +) + + + #figure( + { + set math.equation(numbering: none) + scale(x: 90%, y: 90%, reflow: true, test-case5) + }, + caption: [], +) + + #figure( + { + set math.equation(numbering: none) + scale(x: 90%, y: 90%, reflow: true, test-case6) + }, + caption: [], +) + + + #figure( + { + set math.equation(numbering: none) + scale(x: 90%, y: 90%, reflow: true, test-case7) + }, + caption: [], +) + + + + #figure( + { + set math.equation(numbering: none) + scale(x: 90%, y: 90%, reflow: true, test-case8) + }, + caption: [], +) + diff --git a/Band5/grafiken.typ b/Band5/grafiken.typ index 7de2901..af73ea6 100644 --- a/Band5/grafiken.typ +++ b/Band5/grafiken.typ @@ -50,6 +50,26 @@ bent-edge(, ), ) +#let sq45 = rotate(45deg)[ + #square(size: 4pt, stroke: gray) +] + + +#let pat1 = tiling(size: (5pt, 5pt))[ + #place(line(start: (0%, 100%), end: (100%, 0%),stroke: gray, )) +] + + +// 1. Wir definieren das Muster außerhalb der Canvas +#let mein-kachel-muster = tiling(size: (20pt, 20pt))[ + // Wir nutzen place, um das Quadrat exakt in der Kachel-Mitte zu drehen + #place(center, rotate(45deg)[ + #square(size: 10pt, fill: blue.lighten(50%), stroke: 0.5pt) + ]) +] + + + #let b2_4 = cetz.canvas({ import cetz.draw: * @@ -78,7 +98,9 @@ f, style: ( stroke: none, - fill: tiling(size: (3pt, 3pt), square(stroke: gray)), + //fill: tiling(size: (5pt, 5pt), square(stroke: gray, radius: 3mm)), + //fill: tiling(size: (5pt, 5pt), sq45), + fill: pat1, ),) @@ -161,4 +183,134 @@ plot.add(domain: (1, 6), EC_func3,samples: 300) }) -}) \ No newline at end of file +}) + +#let size = (6, 4) +#let f(x, y: 0) = y + calc.sin(x * 1deg) + +/* Fill between */ +#let test-case = cetz.canvas({ + + plot.plot(size: size, + x-tick-step: none, + y-tick-step: none, + { + plot.add-fill-between(domain: (-360, 360), f.with(y: -1), f.with(y: 1)) + }) +}) + + +#let test-case2 = cetz.canvas({ + plot.plot(size: size, + x-tick-step: none, + y-tick-step: none, + y-max: .5, + { + plot.add-fill-between(domain: (-360, 360), f.with(y: -1), f.with(y: 1)) + }) +}) + +#let test-case3 = cetz.canvas({ + + + plot.plot(size: size, + x-tick-step: none, + y-tick-step: none, + y-min: -.5, + { + plot.add-fill-between(domain: (-360, 360), f.with(y: -1), f.with(y: 1)) + }) +}) + +#let test-case4 = cetz.canvas({ + + plot.plot(size: size, + x-tick-step: none, + y-tick-step: none, + y-max: .5, + y-min: -.5, + { + plot.add-fill-between(domain: (-360, 360), f.with(y: -1), f.with(y: 1)) + }) +}) + +#let test-case5 = cetz.canvas({ + + + plot.plot(size: size, + x-tick-step: none, + y-tick-step: none, + { + plot.add-fill-between(domain: (0, 2 * calc.pi), + t => (calc.cos(t) * 1.5, calc.sin(t)), + t => (calc.cos(t), calc.sin(t) * 1.5)) + }) +}) + + + +#let test-case6 = cetz.canvas({ + + + plot.plot(size: size, + x-tick-step: none, + y-tick-step: none, + { + plot.add-fill-between(domain: (0, 2 * calc.pi), + t => (calc.cos(t) * 1.5, calc.sin(t) * 1.5), + t => (calc.cos(t), calc.sin(t))) + }) +}) + + +#let test-case7 = cetz.canvas({ + + + let f(x) = calc.sin(x) + calc.cos(3 * x) + + plot.plot(size: size, + x-tick-step: none, + y-tick-step: none, + { + // Function + plot.add(domain: (0, 4 * calc.pi), f) + // Error-Band fill + plot.add-fill-between(domain: (0, 4 * calc.pi), + style: (stroke: none), + x => f(x) - calc.exp(x/4) / 2, + x => f(x) + calc.exp(x/4) / 2) + }) +}) + + + + +#let pat1 = tiling(size: (20pt, 20pt))[ + #place(line(start: (0%, 100%), end: (100%, 0%))) +] + +#import "@preview/modpattern:0.1.0": modpattern + +#let pat = modpattern((20pt, 20pt))[ + #move(dx: 50%, line(start: (0%, 100%), end: (100%, 0%))) +] + +#rect(fill: pat, width: 8cm, height: 5cm, stroke: 1pt) + + +#let test-case8 = cetz.canvas({ + import cetz.palette + + + plot.plot(size: size, + x-tick-step: none, + y-tick-step: none, + { + plot.add-fill-between(domain: (0, 2 * calc.pi), + t => (calc.cos(t) * 1.5, calc.sin(t)), + t => (calc.cos(t), calc.sin(t) * 1.5), style: palette.pink) + }) +}) + + +