Build a 2x2 Plotly figure comparing full vs sample histograms for each stratification column (surface area, void fraction, LCD, PLD). Use to verify that a representative sample matches the full distribution.
Parameters
Name
Type
Description
Default
full
Full population DataFrame (MOFdb-style columns).
required
sample
Sampled DataFrame from sample_representative_mofdb.
required
strat_cols
Columns to plot; defaults to MOFDB_STRAT_COLS.
None
nbins_hist
Number of histogram bins per subplot.
40
n_sample
Number to show in title (default: len(sample)).
None
title
Main figure title. If None, uses “Representative subset (N={n_sample})”.