Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TkAgg backend interactive bug #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 28, 2011
Merged

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Jun 23, 2011

Fix bug in TkAgg backend opening/closing multiple figure windows when interactive: True.

To reproduce the bug

import sys
import pylab
import numpy
import time

def test():
    data=numpy.linspace(0,1000,100)
    pylab.figure(14)
    pylab.plot(data,data)
    pylab.savefig('foo.png')
    # if next step is commented out then the error is not produced
    pylab.close(14)

def doit(filename='foo'):
    for i in range(2):
        test()

# Next lines permit one to run the routine from the command line
if __name__ == "__main__":
    import sys
    doit()

The error output looks like:

invalid command name "38192464callit"
while executing
"38192464callit"
("after" script)

mdboom added a commit that referenced this pull request Jun 28, 2011
TkAgg backend interactive bug
@mdboom mdboom merged commit 7b98a96 into matplotlib:v1.0.x-maint Jun 28, 2011
@mdboom mdboom deleted the tk_crash branch March 3, 2015 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant