Assign RGB values to points on implicit_plot3d graph

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

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

implicit_plot3d(x+y+z==1,(x,0,1),(y,0,1),(z,0,1),color=(x,y,z))

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

Comments

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. https://github.com/sponsors/sagemath

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

First step would be to open a ticket asking for this feature on the trac server : https://trac.sagemath.org/

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