Please check this out before throwing it out. PyQtGraph may not be available in the interpreter.
Type python -m pyqtgraph.examples
to bring up the example launcher on one line from the command line.
(It was written in Documentation of README.md of PyQtGraph.)
python -m hoge.hogehoge
is a command that runs a module called hoge.hogehoge.py. (Python 2.7.x documentation)
Since it is a module name, do not write the extension .py.
You can see what you can do ** "what" ** using PyQtGraph by clicking on this launcher from the options and pressing Run example
at the bottom left.
Not only what you can do, but also ** "how" ** can be displayed on the right side of the launcher.
In the right part of the launcher, the python code of the graph using the currently selected PyQtGraph is displayed.
This code display is prepared for each of PySide, PyQt4, and PyQt5 (Qt Library type), and can be changed from the Combo box on the right side that says Qt Library
.
I wrote it in I embedded Matplotlib in a GUI made with Python PySide (Matplotlib version of the previous article). It was. (It's the content of Matplotlib, but after all, it's the content that I like PyQtGraph.)
import pyqtgraph.examples
pyqtgraph.examples.run()
You can do the same, but it will take 3 lines including the start of the interpreter.
Recommended Posts