Guest User

Untitled

a guest
Dec 10th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. {"metadata":{"kernelspec":{"display_name":"Groovy","language":"groovy","name":"groovy"},"language_info":{"codemirror_mode":"groovy","file_extension":".groovy","mimetype":"","name":"Groovy","nbconverter_exporter":"","version":"2.4.3"}},"nbformat_minor":2,"nbformat":4,"cells":[{"cell_type":"code","source":"def plot = new Plot(title: \"Setting line properties\")\ndef ys = [0, 1, 6, 5, 2, 8]\ndef ys2 = [0, 2, 7, 6, 3, 8]\nplot << new Line(y: ys, width: 10, color: Color.red)\nplot << new Line(y: ys, width: 3, color: Color.yellow)\nplot << new Line(y: ys, width: 4, color: new Color(33, 87, 141), style: StrokeType.DASH, interpolation: 0)\nplot << new Line(y: ys2, width: 2, color: new Color(212, 57, 59), style: StrokeType.DOT)\nplot << new Line(y: [5, 0], x: [0, 5], style: StrokeType.LONGDASH)\nplot << new Line(y: [4, 0], x: [0, 5], style: StrokeType.DASHDOT)","metadata":{"trusted":true},"execution_count":3,"outputs":[{"output_type":"display_data","data":{"method":"display_data","application/vnd.jupyter.widget-view+json":{"version_minor":0,"model_id":"39342380-87e7-4301-a0e8-ac831b119177","version_major":2}},"metadata":{}}]}]}
Add Comment
Please, Sign In to add comment