From 75160a15fb56f6cc161414105855005f2b897be5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Wed, 17 Oct 2012 08:57:49 +0000 Subject: [PATCH] fix example (disable new 3dgraph features) git-svn-id: http://svn.code.sf.net/p/pyx/code/trunk/pyx@3312 a4f5e268-e194-4f32-bce1-d30804cbbcc5 --- www/png/example.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/www/png/example.py b/www/png/example.py index 3a6d5499..82e63816 100644 --- a/www/png/example.py +++ b/www/png/example.py @@ -1,13 +1,6 @@ import math from pyx import * -class rgbgradient(color.lineargradient): - - def getcolor(self, x): - return color.lineargradient.getcolor(self, x).rgb() - -rgbHue = rgbgradient(color.hsb(0, 1, 1), color.hsb(1, 1, 1)) - class phasecolorsurface(graph.style.surface): def midcolor(self, *c): @@ -18,5 +11,5 @@ g = graph.graphxyz(size=3.5, zscale=0.3, projector=graph.graphxyz.central(3, 25, y=graph.axis.lin(painter=None), z=graph.axis.lin(painter=None), x2=None, y2=None) -g.plot(graph.data.file("example.dat", x=1, y=2, z=3, color=4), [phasecolorsurface(gradient=rgbHue, backcolor=color.rgb.black)]) +g.plot(graph.data.file("example.dat", x=1, y=2, z=3, color=4), [phasecolorsurface(gradient=color.rgbgradient.Rainbow, coloraxis=graph.axis.lin(min=-math.pi, max=math.pi), backcolor=color.rgb.black, keygraph=None)]) g.writeEPSfile("example") -- 2.11.4.GIT