aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Jackman <brendan.jackman@arm.com>2016-11-04 14:25:39 +0000
committerJavi Merino <merino.jav@gmail.com>2016-11-05 13:12:33 -0600
commit74efec03188ebc15ea5d635fe7d4c5861f72f0d7 (patch)
treec1712e2e3e50be5288b569f6b162cc121856b3b2
parente2ede1f52665ff9ca6ed5177528b2f150ef16a35 (diff)
downloadtrappy-74efec03188ebc15ea5d635fe7d4c5861f72f0d7.tar.gz
doc/InteractivePlotter: Add example of plot fill params
-rw-r--r--doc/InteractivePlotter.ipynb34
1 files changed, 33 insertions, 1 deletions
diff --git a/doc/InteractivePlotter.ipynb b/doc/InteractivePlotter.ipynb
index 01cc103..5ae8cc6 100644
--- a/doc/InteractivePlotter.ipynb
+++ b/doc/InteractivePlotter.ipynb
@@ -349,7 +349,39 @@
],
"language": "python",
"metadata": {},
- "outputs": []
+ "outputs": [],
+ "prompt_number": null
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Styling ILinePlots"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Use `fill=True` to colour-fill the space under the line. `fill_alpha` optionally sets the opacity."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "trappy.ILinePlot(\n",
+ " trace1,\n",
+ " signals=[\"thermal:temp\"],\n",
+ " fill=True,\n",
+ " fill_alpha=0.5\n",
+ ").view()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [],
+ "prompt_number": null
},
{
"cell_type": "heading",