Skip to content

pyplot figures not opening or saving to disk #7286

Answered by rokm
ghylander asked this question in Help
Discussion options

You must be logged in to vote

Can you provide an example that doesn't work when frozen? The basic

import numpy as np
import matplotlib.pyplot as plt

x = np.arange(0, 5, 0.1)
y = np.sin(x)
plt.plot(x, y)
plt.show()

seems to work as expected (python 3.11.0 from python.org, matplotlib 3.6.2 and pyinstaller 5.6.2 installed via pip).

Are you using anaconda python (since you mention libiomp5md.dll...)?

Are you using or trying to use specific matplotlib backend? In that case, do you see PyInstaller collecting that backend during the build or not (the message that looks like: INFO: Selected matplotlib backends: ['TkAgg']).

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@ghylander
Comment options

@rokm
Comment options

@ghylander
Comment options

@rokm
Comment options

@ghylander
Comment options

Answer selected by ghylander
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants