Answer the question
In order to leave comments, you need to log in
How to run matplotlib in qgraphicsview?
Hello everyone, there is a plot on matplotlib, how to push it into a pyqt5 element?
ps pyqtgraphics also tried to use it, but x is digital and y is string, and it's not possible to push this into the element. Code below.
xdict = dict(enumerate(a_names))
win = pg.GraphicsWindow()
stringaxis = pg.AxisItem(orientation='bottom')
stringaxis.setTicks([xdict.items()])
plot = win.addPlot(axisItems={'bottom': stringaxis})
#curve = plot.plot(list(xdict.keys()),a_values)
self.graphicsView.plot(list(xdict.keys()), a_values)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question