Skip to content

invalid command name "..._on_timer" in FuncAnimation for (too) small interval #8107

@voxspox

Description

@voxspox

To get a high frame rate for my animation I use a low value for 'interval' for 'FuncAnimation'. If interval is too low p.ex. 10, I get the following Exception, when (and only when) I close the window:

invalid command name "140613997300232_on_timer"
while executing
"140613997300232_on_timer"
("after" script)
Traceback (most recent call last):
File "./monitor.py", line 93, in
plt.show()
File "env/lib/python3.5/site-packages/matplotlib/pyplot.py", line 253, in show
return _show(*args, **kw)
File "env/lib/python3.5/site-packages/matplotlib/backend_bases.py", line 163, in call
manager.show()
File "env/lib/python3.5/site-packages/matplotlib/backends/backend_tkagg.py", line 610, in show
self.canvas.manager.window.attributes('-topmost', 1)
AttributeError: 'NoneType' object has no attribute 'attributes'

matplotlib==2.0.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy