如何消除极坐标图中显示的轮廓重叠区域?

时间:2020-02-27 19:09:05

标签: python plot

这是代码部分,用于绘制轮廓数据。我想消除轮廓线重叠的区域。在这样的区域中只能出现一条轮廓线。

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

0 个答案:

没有答案
相关问题