boilercv_pipeline.plotting#

Plot operations.

Module Contents#

Functions#

get_first_from_palette

Get the first n colors from a palette.

get_cat_colorbar

Get categorical colorbar.

save_plots

Save a DataFrame to HDF5 format.

API#

boilercv_pipeline.plotting.get_first_from_palette(
palette: Any,
n: int,
) matplotlib.colors.Colormap#

Get the first n colors from a palette.

boilercv_pipeline.plotting.get_cat_colorbar(
ax: matplotlib.axes.Axes,
col: str,
palette: Any,
data: pandas.DataFrame,
alpha: float = 1.0,
) tuple[list[tuple[float, float, float]], pandas.DataFrame]#

Get categorical colorbar.

boilercv_pipeline.plotting.save_plots(
plots: pydantic.BaseModel,
path: pathlib.Path,
)#

Save a DataFrame to HDF5 format.