Skip to content
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

Fail to create pixmap with Tk_GetPixmap in TkImgPhotoInstanceSetSize #115

Open
lovodkin93 opened this issue Dec 22, 2020 · 3 comments
Open

Comments

@lovodkin93
Copy link

When trying to run the visualize.py script, I keep getting this error:

Fail to create pixmap with Tk_GetPixmap in TkImgPhotoInstanceSetSize

I think it has something to do with the fact I run it on windows. Has anyone encountered this problem?

@danielhers
Copy link
Member

I haven't, but I've never tried running it on Windows.

@gayyyyhub
Copy link

gayyyyhub commented Jan 10, 2022

metoo, I just create and save pictures, but it stops running halfway with the error, while some of pictures haven't been finished; thereby I plot them in batches.
Who knows how to solve it?

@gayyyyhub
Copy link

    for key, value in datas.items():

        bins = [0, 5, 10, 15, 20, 25]
        plt.hist(value, bins, density=0, histtype='bar', color="#76A8DE", rwidth=0.8)
        caption = f'{name}-{key}'
        plt.savefig(fr'C:\Users\ywy\Desktop\histogram\{caption}.png')
        plt.close()

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

No branches or pull requests

3 participants