From 17d5028cfd4cb98decb21d36df195184e3c05663 Mon Sep 17 00:00:00 2001 From: Ray Osborn Date: Sun, 23 Jun 2024 15:33:56 -0400 Subject: [PATCH] Generalize specialized plot windows. These are excluded from being default plot windows. --- src/nexpy/gui/plotview.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nexpy/gui/plotview.py b/src/nexpy/gui/plotview.py index 128b1871..2f5a89e6 100644 --- a/src/nexpy/gui/plotview.py +++ b/src/nexpy/gui/plotview.py @@ -135,16 +135,16 @@ def new_figure_manager(label=None, *args, **kwargs): """Create a new figure manager instance. A new figure number is generated. with numbers > 100 preserved for - the Projection and Fit windows. + windows given a specific label. Parameters ---------- label : str - The label used to define + The label used to for specialized plot windows, default is None. """ if label is None: label = '' - if label == 'Projection' or label == 'Scan' or label == 'Fit': + if label and label != 'Main': nums = [plotviews[p].number for p in plotviews if plotviews[p].number > 100] if nums: