How to show plots(Matlablib) on Qlabel Pyqt5
Unsolved
General and Desktop
-
@Dl10 So, a picture? I'm still not sure what you exactly mean.
If it is a picture use http://doc.qt.io/qt-5/qlabel.html#pixmap-prop
or http://doc.qt.io/qt-5/qlabel.html#setPicture
If you really want to plot take a look at https://doc.qt.io/qt-5.10/qtcharts-overview.html
QLabel can't plot. -
@mrjj said in How to show plots(Matlablib) on Qlabel Pyqt5:
Hi
But how do you generate the image you want to show in the QLabel ?way --> from matplotlib import pyplot
my code:
pyplot.plot(Matrix)
pyplot.show()
and what this show i want to put on Qlabel -
Hi
Seems @jsulm has metal powers
I think you can use this t get image
https://matplotlib.org/api/_as_gen/matplotlib.pyplot.imsave.html#matplotlib.pyplot.imsave