Skip to content

Uncertainty breakdown plots left open #439

@oceancolorcoder

Description

@oceancolorcoder

While troubleshooting #438 on SeaBird with non-standard wavebands in Factory regime, the matplotlib generator mysteriously leaves figures open in the background, stealing the focus, and hangs with the error:

/Users/daurin/GitRepos/HyperCP/Source/PIU/Breakdown_CB.py:191: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). Consider using `matplotlib.pyplot.close()`.
  fig = plt.figure(s)
/Users/daurin/GitRepos/HyperCP/Source/PIU/Breakdown_CB.py:188: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). Consider using `matplotlib.pyplot.close()`.
  fig, ax = plt.subplots()
(hypercp) daurin@gs616-daurinm1 HyperCP %  cd /Users/daurin/GitRepos/HyperCP ; /usr/bin/env /Users/daurin/miniforge3/envs/hypercp/bin/python /Users/daurin/.vscode/exte
nsions/ms-python.debugpy-2025.18.0-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 54815 -- /Users/daurin/GitRepos/HyperCP/Main.py 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions