Pyqtgraph -Diagramme und Achsen flackern - Rendering -ProblemPython

Python-Programme
Anonymous
 Pyqtgraph -Diagramme und Achsen flackern - Rendering -Problem

Post by Anonymous »

Ich benutze Pyqtgraph, aber was auch immer ich tue, stecke mit dem folgenden Fehler fest: Für alle Diagramme, Achsen und Handlung flackern und ich kann nichts sehen.

Code: Select all

import pyqtgraph as pg
from PySide6.QtWidgets import QApplication, QMainWindow
import sys
import numpy as np

app = QApplication(sys.argv)

win = QMainWindow()
plot_widget = pg.PlotWidget()
win.setCentralWidget(plot_widget)

x = np.linspace(0, 10, 1000)
y = np.sin(x)
plot_widget.plot(x, y)

win.show()
sys.exit(app.exec())

< /code>
os: Ubuntu 22.04.5 lts. />  Numpy, Version 2.2.6 < /li>
< /ul>
Ich nehme an, es handelt sich um ein Rendering -Problem, das sich auf das System bezieht und nicht die Python- oder Code -Logik, da ich versucht habe, Code aus dem Basis -Tutorial zu einer anderen Ausgabe zu verwenden (z. B. Erstes Diagramm). Qt_qpa_platform 
env Variable zu xcb oder Wayland hat aber nicht funktioniert.

Code: Select all

os.environ["QT_QPA_PLATFORM"] = "xcb"
os.environ["QT_OPENGL"] = "software"
os.environ["LIBGL_ALWAYS_SOFTWARE"] = "1"
Link zum GIF https://gifyu.com/image/bkiqu

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post