【发布时间】:2017-02-18 03:02:53
【问题描述】:
我想绘制网格数据的颜色图,以极坐标形式网格。在数据中,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
【问题讨论】:
标签: python r matlab matplotlib