"bar" - mkraska/meclib GitHub Wiki

[ "bar", "<name>", [x1, y1], [x2, y2], state ]

bar, thick black line with hinge points (nodes) at the ends. The label is placed next to the center of the line on the left side if seen from point 1 to point 2.

  • "<name>" label text, typeset in text mode
  • [x1, y1], [x2, y2] start and end point
  • state (optional, default: "locked") can be "hide" or "show". If locked, object can't be switched interactively.

image

[
  [ "grid", "x","y", -5,5,-4,5, 50, [10,10], [0,0] ],
  [ "bar", "name", [1, 1], [4, 1] ],
  ["label", "1", [0.7,1]],
  ["label", "2", [4.2,1]]
]

Feedback functions

⚠️ **GitHub.com Fallback** ⚠️