Definition at line 62 of file widget_base.py.
◆ __init__()
def shesha.widgets.widget_base.PupilBoxes.__init__ |
( |
|
self, |
|
|
|
x, |
|
|
|
y |
|
) |
| |
x and y are 2D arrays of shape (Nplots, Nsamples)
Definition at line 65 of file widget_base.py.
65 """x and y are 2D arrays of shape (Nplots, Nsamples)"""
66 connect = np.ones(x.shape, dtype=bool)
68 self.path = pg.arrayToQPath(x.flatten(), y.flatten(), connect.flatten())
69 pg.QtGui.QGraphicsPathItem.__init__(self, self.path)
70 self.setPen(pg.mkPen(
'r'))
◆ boundingRect()
def shesha.widgets.widget_base.PupilBoxes.boundingRect |
( |
|
self | ) |
|
Definition at line 75 of file widget_base.py.
75 def boundingRect(self):
76 return self.path.boundingRect()
◆ shape()
def shesha.widgets.widget_base.PupilBoxes.shape |
( |
|
self | ) |
|
Definition at line 72 of file widget_base.py.
73 return pg.QtGui.QGraphicsItem.shape(self)
◆ path
shesha.widgets.widget_base.PupilBoxes.path |
The documentation for this class was generated from the following file: