graph.style.surface: Make mincolor and maxcolor work
commit9a21b7f7e0a03516299a893df0c1a6ef9451fdfe
authorMichael J Gruber <michaeljgruber@users.sourceforge.net>
Tue, 22 Jun 2010 08:34:09 +0000 (22 10:34 +0200)
committerMichael J Gruber <michaeljgruber@users.sourceforge.net>
Tue, 22 Jun 2010 09:06:28 +0000 (22 11:06 +0200)
tree7ea32b3afcdb3b3b046f93c99b09c1f4ca727325
parent6899f8f36506f05179f7688224756f9afe9df26e
graph.style.surface: Make mincolor and maxcolor work

Currently, the mincolor and maxcolor arguments to surface are plainly
ignored.

Make them work as described, i.e. overriding the default coming from the
actual range of values of the color column. In particular, this makes it
possible to draw a surface with a single color without raising a
division by zero.

Also, make sure that actual color values are cut off at the forced min
and max.

Signed-off-by: Michael J Gruber <michaeljgruber@users.sourceforge.net>
pyx/graph/style.py