Pyqt5, Matplotlib incompatibility?
Solved
Qt for Python
-
Im trying to display a graph with data generated from a Gui using matplotlib.
It does not work if i import QFileDialog and try to do plt.show(block=False)Ive done fresh pip installs of both pyqt5 and matplotlib and here is some code to reproduce:
import matplotlib.pyplot as plt
from PyQt5.QtWidgets import QFileDialog
a=[1,2,3]
plt.plot(a)
plt.show(block=False) -
Hi,
Did you try to tell matplotlib to explicitly use its Qt backend ?
-
@Samuel-Liu_ said in Pyqt5, Matplotlib incompatibility?:
It does not work if i import QFileDialog
What does "does not work" mean exactly? What happens?
-
This post is deleted!
-
-
@Samuel-Liu_ Start the script from a terminal and see whether there are any errors/warnings.
-
Hi,
Did you try to tell matplotlib to explicitly use its Qt backend ?