Skip to content

Commit 2e27f11

Browse files
committed
pyqtgraph examples
1 parent f957f39 commit 2e27f11

File tree

8 files changed

+28
-0
lines changed

8 files changed

+28
-0
lines changed

pyqtgraph/TextItem/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
![#1](images/pyqtgraph-1.png?raw=true)
3+
4+
![#1](images/pyqtgraph-2.png?raw=true)
5+
6+
![#1](images/pyqtgraph-textitem.png?raw=true)
7+
13.6 KB
Loading
130 KB
Loading
9.11 KB
Loading

pyqtgraph/TextItem/main.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from PyQt5 import QtGui
2+
import pyqtgraph as pg
3+
4+
app = QtGui.QApplication([])
5+
6+
x = [1,2,3,4,5]
7+
y = [0,3,1,2,0]
8+
9+
plotWidget = pg.plot()
10+
plotWidget.plot(x, y)
11+
12+
text = pg.TextItem("Hello World", color='f00')
13+
plotWidget.addItem(text)
14+
text.setPos(3, 2)
15+
16+
app.exec_()

pyqtgraph/examples/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
![#1](images/pyqtgraph-1.png?raw=true)
3+
4+
![#1](images/pyqtgraph-2.png?raw=true)
5+
130 KB
Loading
13.6 KB
Loading

0 commit comments

Comments
 (0)