We need to plot a series of line segments in 2D. The number of line segments is variable and can be large, so using a node to represent each line segment is not practical. This is not currently supported in Slicer or VTK plots. There are standard functions available in R and MATLAB to create line segment plots from pairs of endpoints that could be used as a model for this function.
We’ve started a lab page for this topic and have included an example using the R function segments. We’d appreciate feedback and ideas.