scmagnify.plotting.distplot#
- scmagnify.plotting.distplot(data_dict, thresholds, figsize=None, dpi=300, nrows=None, ncols=3, wspace=0.1, hspace=None, sharex=False, sharey=False, bins=30, kde=True, palette='tab10', context=None, font_scale=1, default_context=None, theme='whitegrid', show=None, save=None)#
Plot the distribution of multiple parameters with thresholds on separate subplots.
- Parameters:
data_dict (
dict[str,Series]) – A dictionary where keys are parameter names and values are pandas Series containing the data.thresholds (
dict[str,float]) – A dictionary where keys are parameter names and values are the threshold values to be marked on the plots.figsize (
Optional[tuple] (default:None)) – Figure size in inches (width, height). Seematplotlib.figure.Figure.dpi (
int(default:300)) – Dots per inch (resolution) of the figure. Seematplotlib.figure.Figure.nrows (
Optional[int] (default:None)) – Number of subplot rows. If None, it will be calculated automatically.ncols (
int|None(default:3)) – Number of subplot columns. If None, it will be calculated automatically.wspace (
float|None(default:0.1)) – Width space between subplots. Seematplotlib.pyplot.subplots().hspace (
Optional[float] (default:None)) – Height space between subplots. Seematplotlib.pyplot.subplots().sharex (
bool|None(default:False)) – If True, subplots will share the x-axis. Seematplotlib.pyplot.subplots().sharey (
bool|None(default:False)) – If True, subplots will share the y-axis. Seematplotlib.pyplot.subplots().bins (
int(default:30)) – Number of bins for the histogram.kde (
bool(default:True)) – Whether to include a kernel density estimate (KDE) in the plot.palette (
str(default:'tab10')) – Color palette name, list, or dictionary. Seeseaborn.color_palette().context (
Optional[str] (default:None)) – Seaborn context, e.g., ‘notebook’, ‘paper’. Seeseaborn.set_context().default_context (
Optional[dict] (default:None)) – If True, reset to default seaborn context before plotting.theme (
str|None(default:'whitegrid')) – Theme name or rcParams overrides. Seeseaborn.set_theme().font_scale (
float|None(default:1)) – Scale factor applied to fonts for the plot. Seeseaborn.set_context().show (bool | None)
- Returns:
None