From ebdb2369a516dc245c95aa5a9d6b83ac1f509d1e Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Tue, 1 Mar 2016 15:48:36 +0100 Subject: [PATCH] Implement API described in https://github.com/Phyks/replot/issues/1#issuecomment-190751003 --- Examples.ipynb | 6 +++--- replot.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Examples.ipynb b/Examples.ipynb index fe63fba..20a4b5d 100644 --- a/Examples.ipynb +++ b/Examples.ipynb @@ -9534,7 +9534,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 29, "metadata": { "collapsed": false, "scrolled": true @@ -10307,7 +10307,7 @@ { "data": { "text/html": [ - "" + "" ], "text/plain": [ "" @@ -10322,7 +10322,7 @@ " xlabel=\"some x label\",\n", " ylabel=\"some y label\",\n", " title=\"A title for the figure\",\n", - " legend=\"best\").show()" + " legend=\"best\")" ] }, { diff --git a/replot.py b/replot.py index 30e8901..ab67784 100644 --- a/replot.py +++ b/replot.py @@ -138,4 +138,4 @@ def plot(data, **kwargs): # TODO: Fix API, support every plot type for plt in data: figure.plot(plt) - return figure + figure.show()