Skip to content
Snippets Groups Projects
Commit 0913f35b authored by Michael Leuschel's avatar Michael Leuschel
Browse files

improve vector visualisation a little

parent 89a757a0
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
height="500" width="500" height="500" width="500"
viewBox="-250 -250 500 500" viewBox="-250 -250 500 600"
> >
...@@ -24,6 +24,34 @@ ...@@ -24,6 +24,34 @@
</defs> </defs>
<polyline points = "0 0, 100 100" id="axis" stroke="gray"> <polyline points = "0 0, 100 100" id="axis" stroke="gray" />
<text text-align="left" x="250" y="30"
font-size ="20" fill="blue" font-family="sans-serif">
<tspan id="vec_1_0_txt">v1</tspan>
</text>
<text text-align="left" x="250" y="50"
font-size ="20" fill="blue" font-family="sans-serif">
<tspan id="vec_1_1_txt">x(1)</tspan>
</text>
<text text-align="left" x="250" y="70"
font-size ="20" fill="blue" font-family="sans-serif">
<tspan id="vec_1_2_txt">x(2)</tspan>
</text>
<text text-align="left" x="250" y="-70"
font-size ="20" fill="green" font-family="sans-serif">
<tspan id="vec_2_0_txt">v2</tspan>
</text>
<text text-align="left" x="250" y="-50"
font-size ="20" fill="green" font-family="sans-serif">
<tspan id="vec_2_1_txt">x(1)</tspan>
</text>
<text text-align="left" x="250" y="-30"
font-size ="20" fill="green" font-family="sans-serif">
<tspan id="vec_2_2_txt">x(2)</tspan>
</text>
</svg> </svg>
...@@ -35,6 +35,11 @@ ...@@ -35,6 +35,11 @@
"attr": "stroke", "attr": "stroke",
"value" : "\"blue\"" "value" : "\"blue\""
}, },
{
"id": "vector_2",
"attr": "stroke",
"value" : "\"green\""
},
{ {
"id": "axis", "id": "axis",
"attr": "points", "attr": "points",
...@@ -51,6 +56,13 @@ ...@@ -51,6 +56,13 @@
"id": "vector_%0", "id": "vector_%0",
"attr": "y2", "attr": "y2",
"value" : "-vectors(%0)(2)/ SCALE100" "value" : "-vectors(%0)(2)/ SCALE100"
},
{
"for": {"from":1, "to":"NVECS"},
"for": {"from":1, "to":"2"},
"id": "vec_%0_%1_txt",
"attr": "text",
"value" : "REAL_TO_DEC_STRING(vectors(%0)(%1),3)"
} }
], ],
"events": [ "events": [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment