ls_mlkit.util.plot.histogram_plot module¶
- ls_mlkit.util.plot.histogram_plot.plot_histogram_and_kde(data=None, title: str = 'Histogram and KDE Plot', xlabel: str = '', ylabel: str = '', save_path: str = 'histogram_plot.png', show: bool = False, save: bool = True, figsize: tuple = (10, 6), dpi: int = 300, grid: bool = True, grid_alpha: float = 0.3, legend: bool = True, legend_title: str | None = None, legend_bbox_to_anchor: tuple | None = None, legend_loc: str = 'best', legend_fontsize: int | str = 'medium', legend_ncol: int = 1, style: str = 'whitegrid', context: str = 'notebook', font_scale: float = 1.0, return_fig_ax: bool = False, *, x=None, y=None, hue=None, weights=None, stat: str = 'count', bins: str | int | Sequence = 'auto', binwidth: float | None = None, binrange: tuple | None = None, discrete: bool | None = None, cumulative: bool = False, common_bins: bool = True, common_norm: bool = True, multiple: str = 'layer', element: str = 'bars', fill: bool = True, shrink: float = 1, alpha: float | None = None, kde: bool = False, kde_kws: dict[str, Any] | None = None, line_kws: dict[str, Any] | None = None, thresh: float = 0, pthresh: float | None = None, pmax: float | None = None, cbar: bool = False, cbar_ax=None, cbar_kws: dict[str, Any] | None = None, palette=None, hue_order: Sequence | None = None, hue_norm: tuple | None = None, color: str | None = None, log_scale: bool | dict | None = None, ax=None, **kwargs) tuple[Figure, Axes] | None[source]¶