[英]Polar plot without grid in matplotlib
Is there a way to turn of the grid for polar plots in matplotlib? 有没有办法在matplotlib中转换极坐标图的网格? I tried
matplotlib.pyplot.rgrids([], [])
, but it doesn't work. 我试过
matplotlib.pyplot.rgrids([], [])
,但它不起作用。
From your axes
instance, call grid(False)
. 从您的
axes
实例,调用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()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.