|
RadCluster
Graph-based cluster dynamics for irradiated materials
|
Functions | |
| _set_title (ax, text, **kw) | |
| _slug (text) | |
| _apply_style (font_family, font_serif, font_size, axes_linewidth, dpi, save_dpi) | |
| _load_bins (xlsx_path, sheet) | |
| _annotate_cite (ax, text, fontsize) | |
| _save (fig, outdir, stem, formats) | |
| _filter (df, mat_c, type_c, dose_c, temp_c, bin_c, freq_c, material=None, irr_type=None, dose=None, temp=None) | |
| _xywh (df, bin_c, bw_c, freq_c) | |
| plot_size_distributions (xlsx="Ferritics_Irradiated_Microstructure_Data.xlsx", outdir="figures", save=True, show=False, formats=("pdf", "png"), include_overview=True, font_size=16, font_family="serif", font_serif=("Times New Roman", "DejaVu Serif"), axes_linewidth=1.2, dpi=150, save_dpi=300, cite_fontsize=None, figsize=(8, 5)) | |
| main () | |
Variables | |
| list | LOOP_CASES |
| list | VOID_CASES |
| bool | SHOW_TITLES = False |
size_distributions.py
Reads Size_Distribution_Database_FM_Steels.xlsx and produces
publication-quality bar-graph figures of dislocation loop and
void/cavity size distributions — one figure per condition.
Programmatic use (Jupyter):
from size_distributions import plot_size_distributions
figs = plot_size_distributions(
xlsx="../../input/Size_Distribution_Database_FM_Steels.xlsx",
outdir="../../output/size_distributions",
font_size=16, save=True, show=True,
)
CLI use:
python size_distributions.py --xlsx ... --outdir ...
|
protected |
Definition at line 138 of file size_distributions.py.
|
protected |
Definition at line 113 of file size_distributions.py.
|
protected |
Definition at line 149 of file size_distributions.py.
|
protected |
Definition at line 132 of file size_distributions.py.
|
protected |
Definition at line 144 of file size_distributions.py.
|
protected |
Axes (or panel) title, drawn only when SHOW_TITLES is on.
Definition at line 102 of file size_distributions.py.
|
protected |
Definition at line 108 of file size_distributions.py.
|
protected |
Definition at line 163 of file size_distributions.py.
| py_utils.size_distributions.main | ( | ) |
Definition at line 359 of file size_distributions.py.
| py_utils.size_distributions.plot_size_distributions | ( | xlsx = "Ferritics_Irradiated_Microstructure_Data.xlsx", |
|
outdir = "figures", |
|||
save = True, |
|||
show = False, |
|||
formats = ("pdf", "png"), |
|||
include_overview = True, |
|||
font_size = 16, |
|||
font_family = "serif", |
|||
font_serif = ("Times New Roman", "DejaVu Serif"), |
|||
axes_linewidth = 1.2, |
|||
dpi = 150, |
|||
save_dpi = 300, |
|||
cite_fontsize = None, |
|||
figsize = (8, 5) |
|||
| ) |
Build one figure per condition (loop and void size distributions).
Empty datasets are skipped. Returns dict{stem -> Figure} of figures
actually produced.
Set `include_overview=False` to skip the mean-loop-size-vs-T scatter.
Definition at line 171 of file size_distributions.py.
| list py_utils.size_distributions.LOOP_CASES |
Definition at line 35 of file size_distributions.py.
| bool py_utils.size_distributions.SHOW_TITLES = False |
Definition at line 99 of file size_distributions.py.
| list py_utils.size_distributions.VOID_CASES |
Definition at line 74 of file size_distributions.py.