Skip to content

Make GUI trajectory plotting thread-safe and draw each plot once #3578

Open

Description

@deruyter92

Context
PR #3466 fixed the freeze in #3462 with a minimal change. Some problems remain:

  • Qt windows on the worker thread: with the QtAgg backend, PlottingResults uses plt.figure(), so the worker creates Qt figure windows even with showfigures=False.
  • Closing figures that are in use: plt.close("all") in the worker can close windows the GUI is still showing, which may crash the app.
  • Plots drawn twice: with "Show trajectory plots" ticked, the GUI thread draws all plots again after analysis, so the window hangs for a while.

Refs: #3462, #3466, #3164

Activity

  1. added theissue type on Nov 3, 2026
  2. added
    GUI
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

3.1GUI

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions