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