aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2016-03-15 17:52:42 +0000
committerJavi Merino <javi.merino@arm.com>2016-03-15 17:52:42 +0000
commitd9d8278c94f76515701596ddb4e6d0b29f73940f (patch)
tree3e515328c02056e0961438eb4a4bf6cf89859ac5 /doc
parentf63869e1801a0c478f3fd3cc625b66391d0dd7da (diff)
downloadtrappy-d9d8278c94f76515701596ddb4e6d0b29f73940f.tar.gz
doc: Add an example of synchronized zoom
Diffstat (limited to 'doc')
-rw-r--r--doc/InteractivePlotter.ipynb31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/InteractivePlotter.ipynb b/doc/InteractivePlotter.ipynb
index ef198fc..9392ec3 100644
--- a/doc/InteractivePlotter.ipynb
+++ b/doc/InteractivePlotter.ipynb
@@ -294,6 +294,37 @@
},
{
"cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Synchronized zoom in multiple plots"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "ILinePlots can zoom all at the same time. You can do so using the `group` and `sync_zoom` parameter. All ILinePlots using the same group name zoom at the same time."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "trappy.ILinePlot(\n",
+ " trace1,\n",
+ " signals=[\"cpu_in_power:dynamic_power\", \"cpu_in_power:load1\"],\n",
+ " pivot=\"cpus\",\n",
+ " group=\"synchronized\",\n",
+ " sync_zoom=True\n",
+ ").view()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ },
+ {
+ "cell_type": "heading",
"level": 1,
"metadata": {},
"source": [