# Plot Arg[z] in three dimensions

I would like to plot the function Arg[z] for a complex number $$z$$ in three-dimensions: I would like to obtain it as a surface over the complex plane, as in the "3D plot" section of this page:

But I would also like to be able to modify the range and the colors. The function only assumes real values between $$-\pi$$ and $$\pi$$.

I found (and tried) Complex3DPlot, but it does not provide what I'm looking for, because it plots the magnitude of Arg[z].

• Is this what you want? Plot3D[Arg[x + I y], {x, -1, 1}, {y, -1, 1}, ColorFunction -> "Rainbow"] Oct 14 '21 at 14:24
• @Domen Yes, exactly! Thank you. I had tried something similar and it didn't work, maybe I used a wrong syntax. If you would like to make an answer, it's welcome. Oct 14 '21 at 14:26

Use Plot3D with $$z = x + iy$$.
Plot3D[Arg[x + I y], {x, -1, 1}, {y, -1, 1},  ColorFunction -> "Rainbow"]