UnitLine

PropertyDefaultMeaning
from[0, 0.5]Segment start in the local rectangle
to[1, 0.5]Segment end in the local rectangle
space"local"Use local geometry; "data" requires an enclosing coordinate context

UnitLine is a Line convenience that defaults to a horizontal segment from x=0 to x=1 at y=0.5 in its local rectangle. from and to can override these defaults, and space="data" opts into the enclosing coordinate context. Unlike Line, UnitLine keeps its local default inside a graph.

Use HLine or VLine to specify a fixed position and lim span instead of arbitrary endpoints.