Visualization: embedding matplotlib graphical interface to PyQt5

How will this introduction matplotlib drawn graphics embedded in PyQt5 interface.

Just a canvas controls inherit from matplotlib.backends.backend_qt5agg.FigureCanvasQTAgg class, then you can add as ordinary as a PyQt5 control to the graphical interface can be.

For more details, refer to the following example:

file
file

The following example is from the official website, slightly more complicated a little bit, I just added a little Chinese comments.

file
file
file
file
file

Published 38 original articles · won praise 1 · views 2195

Guess you like

Origin blog.csdn.net/wulishinian/article/details/104795745