From 4aeb4ad7b5ad18a4da4a918d5bd994d22c2a3868 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Lehmann?= Date: Wed, 15 Feb 2006 22:16:43 +0000 Subject: [PATCH] - add docstrings for palette methods - correct outputPS and outputPDF methods git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@2563 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/color.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pyx/color.py b/pyx/color.py index 270faf87..88ef7c59 100644 --- a/pyx/color.py +++ b/pyx/color.py @@ -2,7 +2,7 @@ # -*- coding: ISO-8859-1 -*- # # -# Copyright (C) 2002-2004 Jörg Lehmann +# Copyright (C) 2002-2004, 2006 Jörg Lehmann # Copyright (C) 2003-2006 Michael Schindler # Copyright (C) 2002-2004 André Wobst # @@ -330,9 +330,11 @@ class palette(color, attr.changeattr): self.max = max def getcolor(self, param): + """return color corresponding to param""" pass def select(self, index, n_indices): + """return a color corresponding to an index out of n_indices""" if n_indices == 1: param = self.min else: @@ -340,10 +342,10 @@ class palette(color, attr.changeattr): return self.getcolor(param) def outputPS(self, file, writer, context): - self.getcolor(self.min).outputPS(file, writer, context) + self.getcolor(0).outputPS(file, writer, context) def outputPDF(self, file, writer, context): - self.getcolor(self.min).outputPDF(file, writer, context) + self.getcolor(0).outputPDF(file, writer, context) class linearpalette(palette): -- 2.11.4.GIT