79472825

Date: 2025-02-27 13:31:31
Score: 1
Natty:
Report link

I was going through the website examples and also encountered the same problem. After going thru the first example at "python -m pyqtgraph.examples", the solution is to simply run pg.exec() at the end of the script. E.g.

if name == 'main': pg.exec()

Without this, the figure closes right away as you describe.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: muoncatcher