I have a function let's say f(\theta, \phi), that associate to each point of a sphere a value between 0 and 1, now I want my plot to show a sphere, and then the values of this function over the surface of the sphere with color to indicate the value of the function. The function not necessarly cover the full sphere, sometimes is just a quadrant and sometimes a path. How can i do it? I usually use jupiter on vscode.
Thank you!
I can plot the sphere but I can't figure how to cover it with the function value. I tried with PyPlot but I have problem in showing the graph interactively so maybe Plots is better
You can use the packages Meshes and MeshViz to do and plot the mesh. There's an argument
colorinMeshViz.viz, which can be a vector representing a color for each vertex. Once you have your numberf(theta,phi)in[0,1], you can map it to a color with the ColorSchemes package.