Enhance plot output with ID tracking and two display modes

- Add commit hash (6 chars) and UTC timestamp to all plots via text boxes
- Add nuclear data header (nuclide, endpoint, transition, corrections) to plots
- Two display modes:
  - DEBUG (-vv): 4-panel debug view with all correction factors
  - Normal (default): single spectrum plot with nuclear data header
- CLI: --plot now passes show_components=(args.verbose >= 2)
This commit is contained in:
2026-05-05 13:33:46 +03:00
parent 3749220efc
commit d6328d4b24
2 changed files with 136 additions and 3 deletions
+4 -1
View File
@@ -265,7 +265,10 @@ def _run(args: argparse.Namespace) -> None:
# Generate plot
if args.plot:
analyzer = BetaSpectrumAnalyzer(spectrum, config, logger=logger)
analyzer.plot_analysis(save_path=args.plot)
analyzer.plot_analysis(
save_path=args.plot,
show_components=(args.verbose >= 2),
)
logger.info("Analysis plot saved to %s", args.plot)
logger.info("Done.")