From 04704a6bbb5aa74bbf0b4f0f65c34abe2dccc380 Mon Sep 17 00:00:00 2001 From: David Landa Marban Date: Thu, 20 Aug 2026 21:40:19 +0200 Subject: [PATCH] Skip subfigs for one d and names < vars --- src/plopm/utils/write_oned.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plopm/utils/write_oned.py b/src/plopm/utils/write_oned.py index d741983..bace8b1 100644 --- a/src/plopm/utils/write_oned.py +++ b/src/plopm/utils/write_oned.py @@ -104,7 +104,7 @@ def save_summary_png(deckn: str, quan: str, index: int, fig: Figure) -> None: deckn = get_deck_name(cfg.names[0][0]) fig, _ = plt.subplots(1, 1) - if cfg.ensemble == 0 and len(cfg.names[0]) < len(cfg.vrs): + if cfg.ensemble == 0 and not cfg.subfigs[0] and len(cfg.names[0]) < len(cfg.vrs): cfg.names[0] = [cfg.names[0][0]] * len(cfg.vrs) if len(cfg.lw[0]) < len(cfg.vrs): cfg.lw[0] = [cfg.lw[0][0]] * len(cfg.vrs)