13

Is there a way to turn of the grid for polar plots in matplotlib? I tried matplotlib.pyplot.rgrids([], []), but it doesn't work.

1 Answer 1

23

From your axes instance, call grid(False).

import matplotlib.pyplot as plt
import numpy as np

fig = plt.figure()
ax = fig.add_subplot(111, polar=True)
ax.grid(False)

r = np.arange(0,1,0.001)
theta = 2*2*np.pi*r

ax.plot(theta,r)
plt.show()
Sign up to request clarification or add additional context in comments.

2 Comments

If you want to remove the labels, you just have to call ax.set_xticklabels([]) and ax.set_yticklabels([]).
and if you want to remove the outline border, use ax.axis("off")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.