# HG Examples
# Curve Basics
# Example 01 - Curves from Values

import hw
import hw.hg as hg
import os

ses = hw.Session()
ses.new()
win = ses.get(hw.Window)
win.type = "xy"

xvals = [0.0,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0]
yvals = [0.0,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0]
label = "Test linear curve"

cu = hg.CurveXY(
    xSource = "values",
    xValues = xvals,
    ySource = "values",
    yValues = yvals,
    label = label
    )
    
win.update()    
