I have the following code
Posvec = {Cos[\[Phi]] Sin[\[Theta]], Sin[\[Theta]] Sin[\[Phi]],
Cos[\[Theta]]};
Func = Function[{z}, -z^2];
P1 = ParametricPlot[{ Func[Posvec[[3]]], Posvec[[3]]}, {\[Theta],
0, \[Pi]}, PlotRange -> All, AspectRatio -> Full,
ColorFunction -> Function[{x, y}, Hue[-x]],
ColorFunctionScaling -> False];
L1 = ParametricPlot3D[
Posvec, {\[Phi], 0, 2 \[Pi]}, {\[Theta], 0.01, 0.9999 \[Pi]},
Axes -> False, Boxed -> False,
ViewVector -> {{100, 0, 0}, {0, 0, 0}}, PlotPoints -> {50, 50},
ColorFunction -> Function[{x, y, z, \[Phi], \[Theta]}, Hue[z^2]],
ColorFunctionScaling -> False];
GraphicsGrid[{{P1, L1}}, Alignment -> Center]
This first creates 2 plots like this
and this
The last line then creates an image of both plots next to each other. Like this
Now, technically the color plot on the ball and the parabola represent the same value. I would like them to either share the z-axis or at least have the ball and the plot the same height. I really tried, but don't seems to be very successful! As a second thing it would be really nice if one could bring them closer together.
I would be really happy about help
Thanks in advance!