这是代码部分,用于绘制轮廓数据。我想消除轮廓线重叠的区域。在这样的区域中只能出现一条轮廓线。
fig, ax = plt.subplots(subplot_kw=dict(projection='polar'))
def contour_plot(x, y, z):
ax.contour(x, y, z, colors=high_color, locator=ticker.FixedLocator([high]))
c1 = ax.contour(x, y, z, colors=high_color, locator=ticker.FixedLocator([high]))
ax.clabel(c1, inline=1, fontsize=10)
ax.contour(x, y, z, colors=low_color, locator=ticker.FixedLocator([low]))
c1_2 = ax.contour(x, y, z, colors=low_color, locator=ticker.FixedLocator([low]))
ax.clabel(c1_2, inline=1, fontsize=10)
# *** PLOT BS1 **** ---------
contour_plot(theta, r, gain_matrix1)
contour_plot(theta, r, gain_matrix2)
contour_plot(theta, r, gain_matrix3)
这是我的身影:
Image