我想绘制极坐标形式的网格数据的彩色地图。在数据中,r的范围是1到2,theta的范围是0到360。我希望得到如下的地图:
#x1 of shape(12,)
#y1 0f shape(36,1)
#z of shape(36,12)
fig=plt.figure()
ax=fig.add_subplot(111) #Output Figure 1
#ax=fig.add_subplot(111,polar='True') #Output Figure 2
ax=fig.add_subplot(111)
ax.pcolor(y1,x1,z)
plt.show()
有没有想法如何绘制上面的图形?我也试着将 r、theta 转换成 x、y,但是在 r < 1 的范围内得到了颜色映射,而我不想要。