Skip to content

Commit f1234e4

Browse files
committed
fix: add cetz-plot package and fix build
1 parent ac87205 commit f1234e4

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

resources/typst/configuration-management.typ

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
{
1010
set text(font: "Virgil 3 YOFF")
1111
cetz.canvas({
12-
import cetz.plot
1312
cetz.draw.set-style(axes: (shared-zero: false))
1413

1514
plot.plot(
@@ -28,13 +27,15 @@
2827
plot.add(
2928
((75, 75), (450, 500)),
3029
mark: "o",
31-
mark-style: (stroke: blue, fill: white), mark-size: .1,
30+
mark-style: (stroke: blue, fill: white),
31+
mark-size: .1,
3232
)
3333
plot.add(
3434
((75, 50), (450, 125)),
3535
mark: "o",
3636
style: (stroke: (paint: red, dash: "dashed")),
37-
mark-style: (stroke: red, fill: white), mark-size: .1,
37+
mark-style: (stroke: red, fill: white),
38+
mark-size: .1,
3839
)
3940
},
4041
)
@@ -49,7 +50,6 @@
4950
{
5051
set text(font: "Virgil 3 YOFF")
5152
cetz.canvas({
52-
import cetz.plot
5353
cetz.draw.set-style(axes: (shared-zero: false))
5454

5555
plot.plot(
@@ -58,7 +58,7 @@
5858
x-label: [Time],
5959
axis-style: "school-book",
6060
legend-style: (
61-
default-position: "legend.north",
61+
default-position: "north",
6262
stroke: none,
6363
),
6464
x-tick-step: none,
@@ -72,14 +72,19 @@
7272
plot.add(
7373
((75, 125), (450, 300)),
7474
style: (stroke: (paint: red, dash: "dashed")),
75-
mark-style: (stroke: red, fill: white), mark-size: .1,
75+
mark-style: (stroke: red, fill: white),
76+
mark-size: .1,
7677
mark: "o",
7778
label: "Target",
7879
)
7980
plot.add(
8081
((75, 500), (450, 325)),
81-
style: (stroke: (paint: blue), mark: (fill: blue, stroke: blue)),
82-
mark-style: (stroke: blue, fill: white), mark-size: .1,
82+
style: (
83+
stroke: (paint: blue),
84+
mark: (fill: blue, stroke: blue),
85+
),
86+
mark-style: (stroke: blue, fill: white),
87+
mark-size: .1,
8388
mark: "o",
8489
label: "Actual",
8590
)
@@ -96,7 +101,6 @@
96101
{
97102
set text(font: "Virgil 3 YOFF")
98103
cetz.canvas({
99-
import cetz.plot
100104
cetz.draw.set-style(axes: (shared-zero: false))
101105

102106
plot.plot(
@@ -116,13 +120,15 @@
116120
plot.add(
117121
((75, 75), (450, 300)),
118122
mark: "o",
119-
mark-style: (stroke: blue, fill: white), mark-size: .1,
123+
mark-style: (stroke: blue, fill: white),
124+
mark-size: .1,
120125
)
121126
plot.add(
122127
((75, 50), (450, 275)),
123128
mark: "o",
124129
style: (stroke: (paint: red, dash: "dashed")),
125-
mark-style: (stroke: red, fill: white), mark-size: .1,
130+
mark-style: (stroke: red, fill: white),
131+
mark-size: .1,
126132
)
127133
},
128134
)

0 commit comments

Comments
 (0)