MetPy
MetPy copied to clipboard
add functionality to hodograph
Added ring_labels and grid_ticks parameters to the add_grid function in the Hodograph class. This enhancement enables the customization of wind speed labels/ticks and grid ticks on the hodograph.
Checklist
- [x] Tests done (only flake8)
- [x] Fully documented
Description
This pull request introduces the ring_labels and grid_ticks parameters to the add_grid function in the Hodograph class. When ring_labels is set to True (default), wind speed labels/ticks are added to the axhline of the hodograph. When grid_ticks is set to True, x and y ticks are included along the axes.
Example Usage
h = Hodograph(ax_hod, component_range=50.)
h.add_grid(increment=10, alpha=0.5, ls="-", ring_labels=True, grid_ticks=True)
Kindly review this pull request and consider merging it into the main branch. Thank you!