From 54652a09ae38338c122ffea3c9af8835d353e2c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Wed, 18 Dec 2013 21:01:23 +0000 Subject: [PATCH] =?utf8?q?remove=20errorbar=20range=20checks,=20as=20they?= =?utf8?q?=20fail=20on=20a=20reverse=20axis,=20which=20is=20correct=20(rep?= =?utf8?q?orted=20by=20N=C3=A9stor=20Espinoza)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.code.sf.net/p/pyx/code/trunk/pyx@3564 a4f5e268-e194-4f32-bce1-d30804cbbcc5 --- CHANGES | 2 ++ pyx/graph/style.py | 11 ----------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/CHANGES b/CHANGES index a7396a83..d391f1d6 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,8 @@ - cygwin LaTeX with windows python patch (thanks to Sybren A. Stüvel) - graph styles: - fix numerical instability of line clippings + - remove errorbar range checks, as they fail on a reverse axis, which is + correct (reported by Néstor Espinoza) - path module: - fix internal name clash when generating a normpath from an empty path (reported by Brendon Higgins) diff --git a/pyx/graph/style.py b/pyx/graph/style.py index 7a0d2f59..ba1f63d7 100644 --- a/pyx/graph/style.py +++ b/pyx/graph/style.py @@ -389,17 +389,6 @@ class range(_style): except (ArithmeticError, ValueError, TypeError): sharedata.vrange[index][1] = None - # some range checks for data consistency - if (sharedata.vrange[index][0] is not None and sharedata.vrange[index][1] is not None and - sharedata.vrange[index][0] > sharedata.vrange[index][1] + self.epsilon): - raise ValueError("inverse range") - # disabled due to missing vpos access: - # if (sharedata.vrange[index][0] is not None and sharedata.vpos[index] is not None and - # sharedata.vrange[index][0] > sharedata.vpos[index] + self.epsilon): - # raise ValueError("negative minimum errorbar") - # if (sharedata.vrange[index][1] is not None and sharedata.vpos[index] is not None and - # sharedata.vrange[index][1] < sharedata.vpos[index] - self.epsilon): - # raise ValueError("negative maximum errorbar") registerdefaultprovider(range(), range.providesdata) -- 2.11.4.GIT