我正在使用以下代码在风玫瑰上添加补丁(楔形)......但是也提供的输出看起来不太好......有人可以解决我的问题吗?
fov = Wedge((0,0), 20, 20, 60, color="r", alpha=0.5)
plt.hist([0, 1])
plt.close()
ax=WindroseAxes.from_ax()
ax.grid(linestyle="dashed", color="grey", zorder=0)
ax.bar(df_1995['dir'], df_1995['w_speed'],normed=True, opening=1, cmap = cm.magma_r, edgecolor='black', linewidth=0.5, bins=spd_bins, nsector=36, zorder= 3)
ax.set_legend(loc=(-0.12, 0.75), labels=spd_labels)
ax.set_yticks(np.arange(1, 12, step=3))
ax.set_yticklabels(np.arange(1, 12, step=3))
ax.set_title("Walney, Pre-farm Windrose")
ax.add_artist(fov)
plt.show()