diff --git a/doc/groovy/PlotFeatures.ipynb b/doc/groovy/PlotFeatures.ipynb index d860f9929f..789bf75583 100644 --- a/doc/groovy/PlotFeatures.ipynb +++ b/doc/groovy/PlotFeatures.ipynb @@ -342,6 +342,22 @@ "p << new ConstantLine(x: 0.3, y: 0.4, color: Color.gray, width: 5, showLabel: true)" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "def p = new Plot (title: \"Stroke Types\")\n", + "p.setYBound(0, 0.7)\n", + "p << new ConstantLine(y: 0.6, style: StrokeType.NONE, color: Color.blue)\n", + "p << new ConstantLine(y: 0.5, style: StrokeType.SOLID, color: Color.red)\n", + "p << new ConstantLine(y: 0.4, style: StrokeType.DASH, color: Color.green)\n", + "p << new ConstantLine(y: 0.3, style: StrokeType.DOT, color: Color.black)\n", + "p << new ConstantLine(y: 0.2, style: StrokeType.DASHDOT, color: Color.pink)\n", + "p << new ConstantLine(y: 0.1, style: StrokeType.LONGDASH, color: Color.orange)" + ] + }, { "cell_type": "markdown", "metadata": {},