Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/318.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python matplotlib中无网格的极坐标图_Python_Matplotlib - Fatal编程技术网

Python 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中旋转极坐标图的网格?我尝试了
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()