开发者

Polar plot without grid in matplotlib

开发者 https://www.devze.com 2023-03-14 02:28 出处:网络
开发者_如何学GoIs there a way to turn of the grid for polar plots in matplotlib? I tried matplotlib.pyplot.rgrids([], []), but it doesn\'t work.From your axes instance, call grid(False).
开发者_如何学Go

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


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()
0

精彩评论

暂无评论...
验证码 换一张
取 消