Skip to content

Conversation

@jsbautista
Copy link
Collaborator

@jsbautista jsbautista commented Nov 10, 2025

Description of Changes

  • Plots will display a max number of figures at any time.
  • When new figures are created, older ones will be removed and Python's garbage collector called after 30
    secs to clear the memory associated to them.
  • Allow users to change that number (from 10 10 100) with an entry in Plots options menu.

Visual changes

Option to change max number of plots

image

Issue(s) Resolved

Fixes #25249

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct:
@jsbautista

@ccordoba12 ccordoba12 changed the title PR: Add plots limitations Nov 18, 2025
@ccordoba12 ccordoba12 added this to the v6.1.2 milestone Nov 18, 2025
Also, decrease default for max plots and fix some small code issues.
Also, use a for loop to simplify how to add actions to its Options menu
@ccordoba12 ccordoba12 changed the title PR: Limit number of figures shown in Plots to prevent memory leak Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment