I am trying the example from PythonGUIs website using this script:
from PySide6.QtWidgets import QApplication, QMainWindow
import pyqtgraph as pg
import sys
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.graphWidget = pg.PlotWidget()
self.setCentralWidget(self.graphWidget)
hour = [1,2,3,4,5,6,7,8,9,10]
temperature = [30,32,34,32,33,31,29,32,35,45]
# plot data: x, y values
self.graphWidget.plot(hour, temperature)
app = QApplication(sys.argv)
w = MainWindow()
w.show()
app.exec()
For some reason its just giving me a blank ui plot
Are the versions not compatible or is there something wrong somewhere?
Versions:
Python = 3.13.5
pyqtgraph = 0.13.7
PySide6 = 6.9.1