Move hodograph to upper right, reuse the 'spd' var

This commit is contained in:
srcarter3 2020-09-04 10:51:12 -06:00 committed by GitHub
parent 2e29d3b5ff
commit 82e4256579
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1263,8 +1263,8 @@
"l = skew.ax.axvline(0, color='c', linestyle='--', linewidth=2)\n", "l = skew.ax.axvline(0, color='c', linestyle='--', linewidth=2)\n",
"\n", "\n",
"# Draw hodograph\n", "# Draw hodograph\n",
"ax_hod = inset_axes(skew.ax, '40%', '40%', loc=2)\n", "ax_hod = inset_axes(skew.ax, '40%', '40%', loc=1)\n",
"h = Hodograph(ax_hod, component_range=wind_speed(u*units.knots, v*units.knots).max()/units.knots)\n", "h = Hodograph(ax_hod, component_range=spd.max()/units.knots)\n",
"h.add_grid(increment=20)\n", "h.add_grid(increment=20)\n",
"h.plot_colormapped(u, v, spd)\n", "h.plot_colormapped(u, v, spd)\n",
"\n", "\n",