From 53b36fa1fc6980d0618cbbf103d665d154d35805 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Wed, 4 Sep 2002 16:36:10 +0000 Subject: [PATCH] linkaxis zero line bug git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@439 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/graph.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pyx/graph.py b/pyx/graph.py index 0213ece8..beba0fa0 100644 --- a/pyx/graph.py +++ b/pyx/graph.py @@ -314,7 +314,7 @@ class linpart(anypart): return ticks defaultpart = getpart - + class autolinpart(linpart): defaulttickfracslist = ((frac(1, 1), frac(1, 2)), @@ -1172,9 +1172,10 @@ class axispainter(attrlist.attrlist): class linkaxispainter(axispainter): - def __init__(self, skipticklevel = None, skiplabellevel = 0, **args): + def __init__(self, skipticklevel = None, skiplabellevel = 0, zerolinestyles=None, **args): self.skipticklevel = skipticklevel self.skiplabellevel = skiplabellevel + self.zerolinestyles = zerolinestyles axispainter.__init__(self, **args) def paint(self, graph, axis): @@ -1408,7 +1409,7 @@ class graphxy(canvas.canvas): # axes may share their autoparting, because the axes are processed sequentially rate = axis.rate.getrate(axis.ticks, 1) #print rate, axis.ticks - maxworse = 4 + maxworse = 4 #TODO !!! (THIS JUST DOESN'T WORK WELL!!!) worse = 0 while worse < maxworse: newticks = axis.part.lesspart() -- 2.11.4.GIT