matplotlib-widget

Embedding “Figure Type” Seaborn Plot in PyQt (pyqtgraph)

本秂侑毒 提交于 2019-12-01 06:53:37
问题 I am using a wrapper of PyQt (pyqtgraph) to build a GUI application. I wish to embed a Seaborn plot within it using the MatplotlibWidget. However, my problem is that the Seaborn wrapper method such as FacetGrid do not accept an external figure handle. Moreover, when I try to update the MatplotlibWidget object underlying figure ( .fig ) with the figure produced by the FacetGrid it doesn't work (no plot after draw ). Any suggestion for a workaround? 回答1: Seaborn's Facetgrid provides a

Plotting matplotlib figure inside QWidget using Qt Designer form and PyQt5

亡梦爱人 提交于 2019-11-28 23:34:14
I don't understand the best way to link a matplotlib figure to a form created from Qt Designer. I have a form I created in QtDesigner and then compiled to python through pyuic5. My main program is: import app_framework as af import matplotlib from PyQt5 import QtWidgets import sys matplotlib.use('Qt5Agg') app = QtWidgets.QApplication(sys.argv) form = af.MyApp() form.show() app.exec_() where myApp calls the app_framework.py form created from Qt Designer then converted by pyuic5 (design.py): from PyQt5.QtWidgets import QApplication, QMainWindow import design class MyApp(QMainWindow, design.Ui

Plotting matplotlib figure inside QWidget using Qt Designer form and PyQt5

≡放荡痞女 提交于 2019-11-27 02:21:39
问题 I don't understand the best way to link a matplotlib figure to a form created from Qt Designer. I have a form I created in QtDesigner and then compiled to python through pyuic5. My main program is: import app_framework as af import matplotlib from PyQt5 import QtWidgets import sys matplotlib.use('Qt5Agg') app = QtWidgets.QApplication(sys.argv) form = af.MyApp() form.show() app.exec_() where myApp calls the app_framework.py form created from Qt Designer then converted by pyuic5 (design.py):