Schraffur fast gelöst
This commit is contained in:
+72
-1
@@ -237,4 +237,75 @@
|
||||
scale(x: 90%, y: 90%, reflow: true, EC_drawing2)
|
||||
},
|
||||
caption: [],
|
||||
) <abb5>
|
||||
) <abb5>
|
||||
|
||||
|
||||
#figure(
|
||||
{
|
||||
set math.equation(numbering: none)
|
||||
scale(x: 90%, y: 90%, reflow: true, test-case)
|
||||
},
|
||||
caption: [],
|
||||
) <abb5>
|
||||
|
||||
|
||||
#figure(
|
||||
{
|
||||
set math.equation(numbering: none)
|
||||
scale(x: 90%, y: 90%, reflow: true, test-case2)
|
||||
},
|
||||
caption: [],
|
||||
) <abb5>
|
||||
|
||||
#figure(
|
||||
{
|
||||
set math.equation(numbering: none)
|
||||
scale(x: 90%, y: 90%, reflow: true, test-case3)
|
||||
},
|
||||
caption: [],
|
||||
) <abb5>
|
||||
|
||||
#figure(
|
||||
{
|
||||
set math.equation(numbering: none)
|
||||
scale(x: 90%, y: 90%, reflow: true, test-case4)
|
||||
},
|
||||
caption: [],
|
||||
) <abb5>
|
||||
|
||||
|
||||
#figure(
|
||||
{
|
||||
set math.equation(numbering: none)
|
||||
scale(x: 90%, y: 90%, reflow: true, test-case5)
|
||||
},
|
||||
caption: [],
|
||||
) <abb5>
|
||||
|
||||
#figure(
|
||||
{
|
||||
set math.equation(numbering: none)
|
||||
scale(x: 90%, y: 90%, reflow: true, test-case6)
|
||||
},
|
||||
caption: [],
|
||||
) <abb5>
|
||||
|
||||
|
||||
#figure(
|
||||
{
|
||||
set math.equation(numbering: none)
|
||||
scale(x: 90%, y: 90%, reflow: true, test-case7)
|
||||
},
|
||||
caption: [],
|
||||
) <abb5>
|
||||
|
||||
|
||||
|
||||
#figure(
|
||||
{
|
||||
set math.equation(numbering: none)
|
||||
scale(x: 90%, y: 90%, reflow: true, test-case8)
|
||||
},
|
||||
caption: [],
|
||||
) <abb5>
|
||||
|
||||
|
||||
+154
-2
@@ -50,6 +50,26 @@
|
||||
bent-edge(<g>, <m>),
|
||||
)
|
||||
|
||||
#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)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
#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)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user