我正在尝试使用metpy为倾斜图上的线条添加标签。我不确定是否可能(在 GitHub 上查看了metpy,似乎他们还没有实现这个功能)。但本质上,我只想为潮湿绝热、干燥绝热和混合比贴上标签。目前,我用来调用和绘制这些函数的代码是:
# Choose temperatures for moist adiabats
t0 = units.K * np.arange(278.15, 306.15, 4)
msa = skew.plot_moist_adiabats(t0=t0, linestyles='solid', colors='lime', linewidths=1.5)
# Choose starting temperatures in Kelvin for the dry adiabats
t0 = units.K * np.arange(243.15, 443.15, 10)
skew.plot_dry_adiabats(t0=t0,
linestyles='solid',
colors='gray',
linewidth=1.5)
和
# Choose the range of pressures that the mixing ratio lines are drawn over
p = units.hPa * np.linspace(1000, 400, 7)
skew.plot_mixing_lines(w=w, p=p, colors='lime')