I have a function which is defined for a set of points over the surface of a cube. I know the value of the function for the coordinates. How to generate a plot which will assign a color to every point on the surface of the cube, depending on the value of the function at that point?
On 2D, I can generate colorful contour plots, but how to do something similar in 3D?
Suppose, the function which I want to plot is f(x,y,z) = x^2 + yz.
And, the points on the cube are defined as
xvar = linspace(-1,1,20), yvar = linspace(-1,1,20), zvar = linspace(-1,1,20).
scatter3 (x, y, z, s, c)wherecis the color component - matzeri