Python matplotlib中无网格的极坐标图
有没有办法在matplotlib中旋转极坐标图的网格?我尝试了Python matplotlib中无网格的极坐标图,python,matplotlib,Python,Matplotlib,有没有办法在matplotlib中旋转极坐标图的网格?我尝试了matplotlib.pyplot.rgrids([],[]),但它不起作用。从轴实例调用网格(False) 如果要删除标签,只需调用ax.set\xticklabels([])和ax.set\yticklabels([])。 import matplotlib.pyplot as plt import numpy as np fig = plt.figure() ax = fig.add_subplot(111, polar=Tr
matplotlib.pyplot.rgrids([],[])
,但它不起作用。从轴
实例调用网格(False)
如果要删除标签,只需调用
ax.set\xticklabels([])
和ax.set\yticklabels([])
。
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()