|
9 | 9 | {
|
10 | 10 | set text(font: "Virgil 3 YOFF")
|
11 | 11 | cetz.canvas({
|
12 |
| - import cetz.plot |
13 | 12 | cetz.draw.set-style(axes: (shared-zero: false))
|
14 | 13 |
|
15 | 14 | plot.plot(
|
|
28 | 27 | plot.add(
|
29 | 28 | ((75, 75), (450, 500)),
|
30 | 29 | mark: "o",
|
31 |
| - mark-style: (stroke: blue, fill: white), mark-size: .1, |
| 30 | + mark-style: (stroke: blue, fill: white), |
| 31 | + mark-size: .1, |
32 | 32 | )
|
33 | 33 | plot.add(
|
34 | 34 | ((75, 50), (450, 125)),
|
35 | 35 | mark: "o",
|
36 | 36 | 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, |
38 | 39 | )
|
39 | 40 | },
|
40 | 41 | )
|
|
49 | 50 | {
|
50 | 51 | set text(font: "Virgil 3 YOFF")
|
51 | 52 | cetz.canvas({
|
52 |
| - import cetz.plot |
53 | 53 | cetz.draw.set-style(axes: (shared-zero: false))
|
54 | 54 |
|
55 | 55 | plot.plot(
|
|
58 | 58 | x-label: [Time],
|
59 | 59 | axis-style: "school-book",
|
60 | 60 | legend-style: (
|
61 |
| - default-position: "legend.north", |
| 61 | + default-position: "north", |
62 | 62 | stroke: none,
|
63 | 63 | ),
|
64 | 64 | x-tick-step: none,
|
|
72 | 72 | plot.add(
|
73 | 73 | ((75, 125), (450, 300)),
|
74 | 74 | 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, |
76 | 77 | mark: "o",
|
77 | 78 | label: "Target",
|
78 | 79 | )
|
79 | 80 | plot.add(
|
80 | 81 | ((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, |
83 | 88 | mark: "o",
|
84 | 89 | label: "Actual",
|
85 | 90 | )
|
|
96 | 101 | {
|
97 | 102 | set text(font: "Virgil 3 YOFF")
|
98 | 103 | cetz.canvas({
|
99 |
| - import cetz.plot |
100 | 104 | cetz.draw.set-style(axes: (shared-zero: false))
|
101 | 105 |
|
102 | 106 | plot.plot(
|
|
116 | 120 | plot.add(
|
117 | 121 | ((75, 75), (450, 300)),
|
118 | 122 | mark: "o",
|
119 |
| - mark-style: (stroke: blue, fill: white), mark-size: .1, |
| 123 | + mark-style: (stroke: blue, fill: white), |
| 124 | + mark-size: .1, |
120 | 125 | )
|
121 | 126 | plot.add(
|
122 | 127 | ((75, 50), (450, 275)),
|
123 | 128 | mark: "o",
|
124 | 129 | 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, |
126 | 132 | )
|
127 | 133 | },
|
128 | 134 | )
|
|
0 commit comments