Assign RGB values to points on implicit_plot3d graph

asked 2021-05-04 21:17:37 +0100

kyle o gravatar image

Is there a way to assign an explicit RGB color to each point satisfying an equation of the form f(x,y,z)=c? For instance, I would like it if the command


colored the standard 2-simplex in R^3 according to the associated RGB values, but it doesn't. I'm aware that one can use colormaps and functions R^3 -> R to color the output of implicit_plot3d but I would like to use a function R^3 -> [0,1]^3 to do the coloring.

edit retag flag offensive close merge delete


Well, it's just a matter of someone implementing that. The beauty of open source is that you could in fact do that yourself. You could also propose to sponsor sage if somebody else does the job.

FrédéricC gravatar imageFrédéricC ( 2021-05-04 21:45:17 +0100 )edit
FrédéricC gravatar imageFrédéricC ( 2021-05-04 21:52:52 +0100 )edit

First step would be to open a ticket asking for this feature on the trac server :

FrédéricC gravatar imageFrédéricC ( 2021-05-05 20:11:13 +0100 )edit