MetPy icon indicating copy to clipboard operation
MetPy copied to clipboard

add functionality to hodograph

Open syedhamidali opened this issue 2 years ago • 1 comments

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!

Screenshot 2023-07-08 at 12 12 56 AM Screenshot 2023-07-08 at 12 11 55 AM Screenshot 2023-07-08 at 12 11 06 AM

syedhamidali avatar Jul 08 '23 04:07 syedhamidali

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 08 '23 04:07 CLAassistant