diff --git a/Physics/vector_visualisation.svg b/Physics/vector_visualisation.svg index f15d79eaff65882d7c0253313585fe362b015235..6fd00098d1502067001cacd2e1b97b79404e2d1b 100644 --- a/Physics/vector_visualisation.svg +++ b/Physics/vector_visualisation.svg @@ -2,7 +2,7 @@ <svg xmlns="http://www.w3.org/2000/svg" height="500" width="500" - viewBox="-250 -250 500 500" + viewBox="-250 -250 500 600" > @@ -24,6 +24,34 @@ </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> diff --git a/Physics/vector_visualisation_visb.json b/Physics/vector_visualisation_visb.json index 2813ae646ce689f32bfebf7aae59a1525466387b..54ec36b747fad3e9a1d3d11032ab0ee0fece4a99 100644 --- a/Physics/vector_visualisation_visb.json +++ b/Physics/vector_visualisation_visb.json @@ -35,6 +35,11 @@ "attr": "stroke", "value" : "\"blue\"" }, + { + "id": "vector_2", + "attr": "stroke", + "value" : "\"green\"" + }, { "id": "axis", "attr": "points", @@ -51,6 +56,13 @@ "id": "vector_%0", "attr": "y2", "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": [