calamari.plot.plot_chi_map#

calamari.plot.plot_chi_map(measurements, *, ax=None, family_scale='linear', show_samples=True, mesh_kwargs=None, clim=None, robust_percentiles=(1.0, 99.0), family_gridding='rows', family_max_gap=None, n_family=None, transitions=None, transition_kwargs=None, **grid_kwargs)#

Resolve and draw a chi(T, H) map in one call.

grid_kwargs go to chi_map_grid() (component, units, sample, source, frequency, gridding, outliers, …); clim/robust_percentiles and mesh_kwargs (a dict, to ax.pcolormesh) to draw_map(). Returns the QuadMesh – attach a colourbar with fig.colorbar(mesh, ax=mesh.axes, label=...); the resolved value label is on the axes title and on the grid (chi_map_grid() is the public seam when you want the arrays).

family_gridding='interp' fills the space between sweeps by linear interpolation along the family axis and requires family_max_gap (family-axis units; n_family optionally sets the rendered row count) – see interpolate_family() for what is asserted and what stays a hole. The publication-style rendering is that plus show_samples=False; the sample overlay is the audit trail for what the interpolation manufactured, so leave it on while deciding whether to trust the figure.

transitions= overlays detected transition candidates (see calamari.transitions.detect_transitions_all() and overlay_transitions()); transition_kwargs tunes the overlay. The grid and family_scale are wired through automatically, which is what makes the overlay safe on family_scale='index' maps.