Skip to content

Commit

Permalink
Generalize specialized plot windows.
Browse files Browse the repository at this point in the history
These are excluded from being default plot windows.
  • Loading branch information
rayosborn committed Jun 23, 2024
1 parent 6a973dc commit 17d5028
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nexpy/gui/plotview.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 17d5028

Please sign in to comment.