Skip to content

Disabling excessive pop-ups in Analyze videos #3164

Closed

Description

@gianmarco-terrones

Is your feature request related to a problem? Please describe.
In the Analyze videos tab of the GUI, when one selects the checkboxes Plot trajectories and Show trajectory plots and chooses a set of body parts, four pop-up plots appear once the Analyze Videos button is clicked. These plots have the titles Figure 1, Figure 2, Figure 3, and Figure 4.

Image Image

However, if the Analyze Videos button is pressed again and Show trajectory plots is still checked, 8 figures pop up. If the button is pressed again, 12 figures pop up, and so on.

Describe the solution you'd like
It would be great if whenever Analyze Videos button is pressed and Show trajectory plots is selected, only four plots pop up, corresponding to the current selection of body parts.

Describe alternatives you've considered
This isn't an alternative per se, more a proposed solution. Add the following in line 307 of deeplabcut/utils/plotting.py, in the function plot_trajectories:

    # Close existing figures if showing new ones to prevent accumulation
    # when the Analyze Videos button is pressed multiple times
    if showfigures:
        plt.close("all")

Additional context
The sets of four plots that appear correspond to hist.png, plot.png, plot-likelihood.png, and trajectory.pn in videos/plot-poses of the opened DLC project.

Activity

  1. deruyter92 commented on Jan 6, 2026

    @deruyter92
    Collaborator

    Hi @gianmarco-terrones, this sounds reasonable to me. I have created PR #3168 for your proposed feature, please try it if you want.

  2. self-assigned this
    on Jan 9, 2026
  3. added
    WORK IN PROGRESS!
    and removed
    WORK IN PROGRESS!
    on Jan 9, 2026
  4. added theissue type on Feb 4, 2026
  5. changed the issue type fromtoon Feb 4, 2026
  6. added a commit that references this issue on Feb 10, 2026
  7. deruyter92 commented on Feb 13, 2026

    @deruyter92
    Collaborator

    This issue was resolved in PR #3168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions