【发布时间】:2021-05-23 21:34:45
【问题描述】:
我正在尝试将地面以上特定高度的风数据包含在大气探测的全线图中。更具体地说,我希望将 1 公里、3 公里、6 公里和 9 公里的地表风绘制为一个点。到目前为止,我刚刚实现了将它们划分为边界:
# Make an array of segment boundaries - don't forget units!
boundaries_h = [0, 1000, 3000, 6000, 9000] * units.meter
# Make a list of colors for the segments
colors_h = ['#66B2FF', '#3333FF', '#7F00FF', '#000000']
# Create a hodograph
ax_hod = inset_axes(skew.ax, '37.5%', '36.5%', loc=1)
wmax = np.concatenate((u, v))
wmax = np.max(wmax)
h = Hodograph(ax_hod, component_range=wmax.magnitude+2)
if wmax.magnitude < 20:
h.add_grid(increment=5)
if wmax.magnitude < 40 and wmax.magnitude > 20:
h.add_grid(increment=10)
if wmax.magnitude > 40:
h.add_grid(increment=20)
h.plot_colormapped(u, v, z, intervals=boundaries_h, colors=colors_h)
基本上,我只想在每个段的开头和结尾点点,并带有指定高度的文本(sfc、1 公里、3 公里、6 公里、9 公里)。我怎样才能做到这一点? 顺便问一下,还有没有办法将全息图轴的标签包含在圆圈内?
【问题讨论】: