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" plot.setInitWidth(500) "ok" plot.setInitHeight(200); "ok" plot << new Line(y: [5, 0], x: [0, 5], style: StrokeType.LONGDASH) "ok" ch = new Crosshair(color: new Color(255, 128, 5), width: 2, style: StrokeType.DOT) plot.setCrosshair(ch) "ok"