I want to limit the range from 0 to Pi, that is, just the upper half of the graph. I change the rmax to Pi. However, it cannot made the correct plot which I want.
I think that doesn’t affect the result because it is just the wrong parameter name which is written in user guide.
After I change the name of parameter, the result remains the same.
You were just missing to tell the TGraphPolar that your theta are radian (no idea what it expects by default). Then the polar graph is correct. Just add this: