1# -*- coding: utf-8 -*-
2"""
3Very basic 3D graphics example; create a view widget and add a few items.
4
5"""
6## Add path to library (just for examples; you do not need this)
7import initExample
8
9import pyqtgraph as pg
10import pyqtgraph.opengl as gl
11
12pg.mkQApp("GLViewWidget Example")
13w = gl.GLViewWidget()
14w.show()
15w.setWindowTitle('pyqtgraph example: GLViewWidget')
16w.setCameraPosition(distance=20)
17
18ax = gl.GLAxisItem()
19ax.setSize(5,5,5)
20w.addItem(ax)
21
22b = gl.GLBoxItem()
23w.addItem(b)
24
25ax2 = gl.GLAxisItem()
26ax2.setParentItem(b)
27
28b.translate(1,1,1)
29
30if __name__ == '__main__':
31    pg.exec()
32