|
From: Philippe P. <phi...@gm...> - 2015-01-17 18:25:37
|
Hello All, I have a scalar function (a potential) defined on a 3-dimensional cartesian space V(x,y,z) and an arbitrary surface (a boundary) set by the function f(x,y,z)=a. I would like to paint the value of V(x,y,z) on the surface defined by f in the (x,y,z) domain. Specifically I was thinking of rewriting f in the form of Z=f(X,Y) and plot it with surface plot plot_surface(X, Y, Z, cmap=cm.coolwarm) This give me my boundary surface but its color is set by Z while I would like if to be set by my other function V evaluated on the surface. Please let me know if any of you have a good suggestion. Thank you, -- Philippe. |