plot = new Plot(title: "Setting line properties", initHeight: 150) 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("Changed Title"); OutputCell.HIDDEN plot.setInitWidth(500) OutputCell.HIDDEN plot << new Line(y: [5, 0], x: [0, 5], style: StrokeType.LONGDASH) OutputCell.HIDDEN ch = new Crosshair(color: new Color(255, 128, 5), width: 2, style: StrokeType.DOT) plot.setCrosshair(ch) OutputCell.HIDDEN