Full-pol H-A-alpha plot (plot_h_a_alpha_fp)#

polsartools.plot_h_a_alpha_fp(H, A, alpha, ppath=None, cmap='jet', cbar=True, norm='', vmin=None, vmax=None, grey_region=True, zone_lines=True, zone_line_color='k', gridsize=200)[source]

Generates and saves a density plot of entropy (H) versus alpha (degrees) for full-pol data, including optional zone lines, zone IDs, and grey regions.

Example:#

>>> plot_h_a_alpha_fp(h, A, alpha, ppath="HAAlpha_plot.png", cmap='jet', colorbar=True, norm='log')
This will generates a H/A/Alpha plot  from the input arrays and save it as HAAlpha_plot.png, using the 'jet' colormap and logarithmic normalization

Parameters:#

hpath or array-like

path to the Entropy file or Array representing entropy values.

Aarray-like

path to the Anisotropy file or Array representing Anisotropy values.

alphaarray-like

path to the Alpha file or Array representing alpha values in degrees.

ppathstr, optional

Path to save the generated plot. If a folder is given, the plot is saved as ‘halpha_plot_fp.png’ inside that folder. If the file already exists, it will be overwritten.

cmapstr, optional

Colormap used for the hexbin plot. Defaults to ‘viridis’.

colorbarbool, optional

If True, displays a colorbar representing sample count. Defaults to True.

normstr, optional

If set to ‘log’, applies logarithmic normalization to the hexbin plot.

grey_regionbool, optional

If True, fills non-feasible regions of the plot with a grey color to indicate feasible boundaries. Defaults to True.

zone_linesbool, optional

If True, adds dashed lines to mark different entropy-alpha zones. Defaults to True.

zone_line_colorstr, optional

Color used for zone boundary lines. Defaults to ‘k’ (black).

zone_idsbool, optional

If True, labels predefined zones with numerical identifiers. Defaults to True.

gridsizeint, optional

Number of hexagonal bins used in the plot. Higher values result in finer binning. Defaults to 300.

Returns:#

None

Displays the plot and optionally saves it to the specified location.

Notes:#

  • Uses get_feas_bounds() to obtain feasible boundary curves for plotting.

  • If norm is ‘log’, a LogNorm() normalization is applied.