From 108649308a8e50dc0114d41ac96012e5c232498a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Mon, 12 Sep 2005 07:59:26 +0000 Subject: [PATCH] corrections to the warning when plotting after dolayout git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@2411 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/graph/graph.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyx/graph/graph.py b/pyx/graph/graph.py index d3a22429..4dcb74ca 100644 --- a/pyx/graph/graph.py +++ b/pyx/graph/graph.py @@ -23,7 +23,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA -import math, re, string +import math, re, string, warnings from pyx import canvas, path, trafo, unit from pyx.graph import style from pyx.graph.axis import axis, positioner @@ -164,8 +164,8 @@ class graph(canvas.canvas): canvas.canvas.outputPDF(self, file, writer, context) def plot(self, data, styles=None, rangewarning=1): - if self.didranges and rangewarnings: - raise warnings.warn("axes ranges have already been analysed; no further adjustments will be performed") + if self.didranges and rangewarning: + warnings.warn("axes ranges have already been analysed; no further adjustments will be performed") if self.diddata: raise RuntimeError("can't add further data while data has already been processed") singledata = 0 -- 2.11.4.GIT