plot = new Plot(title: "Setting line properties")
def ys = [0, 1, 6, 5, 2, 8]
def ys2 = [0, 2, 7, 6, 3, 8]
plot << new Line(y: ys, width: 10, color: Color.red)
plot << new Line(y: ys, width: 3, color: Color.yellow)
plot.setTitle("title1");
"ok"
ok
plot.setInitWidth(500)
"ok"
ok
plot.setInitHeight(200);
"ok"
ok
plot << new Line(y: [5, 0], x: [0, 5], style: StrokeType.LONGDASH)
"ok"
ok
ch = new Crosshair(color: new Color(255, 128, 5), width: 2, style: StrokeType.DOT)
plot.setCrosshair(ch)
"ok"
ok