Skip to content

UI.PlotLine

Name - Description Default Type
<input> A sequence of point coordinates. [Float2]
<output> The output of this shard will be its input. [Float2]
Color Stroke color. none ColorVar(Color)
Name Name of this chart, displayed in the plot legend. none String

Line-connected points on a plot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
(GFX.MainWindow
 :Contents
 (->
  (Setup
   (GFX.DrawQueue) >= .ui-draw-queue
   (GFX.UIPass .ui-draw-queue) >> .render-steps)
  (UI
   (UI.CentralPanel
    (UI.Plot
     (->
      [(float2 -1) (float2 0) (float2 1)] (UI.PlotLine)))))

  (GFX.Render :Steps .render-steps)))