"label" - mkraska/meclib GitHub Wiki

[ "label", "name", [x, y], color ]

label, text anchor is center left, typeset in text mode. To use MathJax math mode bracket the label with \\( \\).

  • "name" label text
  • [x, y] position of text anchor
  • color (optional, default: "black") label color

Example

image

[
  [ "grid", "x","y", -5,5,-4,5, 50, [10,10], [0,0] ],
  [ "label", "name", [2, 2] ],
  [ "label", "\\(A\\)", [3, 2], "red" ],
  [ "point", "", [2, 2] ],
  [ "point", "", [3, 2] ]
]