# How to rotate around z-axis a simple 3DPlot? [duplicate]

I am trying to Rotate a 3DPlot around the z-axis (in the horizontal plane). This is what I believed would work, but I think I misunderstood how Rotate works. When I change the vector {0,0,1} to {1,1,1}, nothing happens. When I change the amount of degrees, it rotates in the wrong way. If I am not wrong, ViewPoint keeps the point of view constant. I think the key is actually in the ViewPoint. Changing the first component of the vector in ViewPoint helps to have the desired rotation, but the issue is now that I get a strong zoom which I do not want. A picture below shows what I would like to achieve, keeping sizes constant.

 Rotate[Plot3D[Sin[x y], {x, 0, Pi}, {y, 0, Pi},ViewPoint->{1,1,1}], 70 Degree, {0, 0, 1}]


I believe Rotate is turning the whole image, not the single plot inside the square containing the plot.

• This is 2D case but the answer should fit here perfectly: mathematica.stackexchange.com/q/44748/5478
– Kuba
May 8 '17 at 9:37
• @Kuba what I want is the Plot to be make a revolution May 8 '17 at 9:39
• Is this Graphics3D[Rotate[plot[[1]], 70 Degree, {0, 0, 1}], Sequence @@ Rest@plot] what you need? Then yes.
– Kuba
May 8 '17 at 10:00
• Add PlotRange -> All to Graphics3D.
– Kuba
May 8 '17 at 10:24
• Not true, you just need to put it before Sequence.. because the first option takes precedence
– Kuba
May 8 '17 at 10:38

plot = Plot3D[Sin[x y], {x, 0, Pi}, {y, 0, Pi},

Graphics3D[Rotate[#, 70 Degree, {0, 0, 1}],

• when adding another function, say Cos[x y], and including PlotLegends, I get an error saying "Graphics is not a Graphics3D primitive or directive". How to include the Legends in Graphics? May 8 '17 at 11:12