def __init__(self, parent, text='', x=0, y=0, z=0, fontname=None): Wobject.__init__(self, parent) BaseText.__init__(self, text, fontname) # store coordinates self._x, self._y, self._z = x, y, z # for internal use self._screenx, self._screeny, self._screenz = 0, 0, 0
def __init__(self, parent, text="", x=0, y=0, z=0, fontName=None, fontSize=9, color="k"): Wobject.__init__(self, parent) BaseText.__init__(self, text, fontName, fontSize, color) # store coordinates self._x, self._y, self._z = x, y, z # for internal use self._screenx, self._screeny, self._screenz = 0, 0, 0
def __init__(self, parent, points): Wobject.__init__(self, parent) # Store points self.SetPoints(points) # init line properties self._lw, self._ls, self._lc = 1, '-', 'b' # init marker properties self._mw, self._ms, self._mc = 7, '', 'b' # init marker edge properties self._mew, self._mec = 1, 'k' # alpha values self._alpha1 = 1
def __init__(self, parent, text='', x=0, y=0, z=0, fontName=None, fontSize=9, color='k'): Wobject.__init__(self, parent) BaseText.__init__(self, text, fontName, fontSize, color) # store coordinates self._x, self._y, self._z = x, y, z # for internal use self._screenx, self._screeny, self._screenz = 0, 0, 0
def __init__(self, parent, points): Wobject.__init__(self, parent) # make a copy points = points.copy() # add z dimension to points if not available if points.ndim == 2: # a bit dirty... tmp = points._data, 0.1*np.ones((len(points._data),1), dtype='float32') points._data = np.concatenate(tmp,1) self._points = points # init line properties self._lw, self._ls, self._lc = 1, '-', 'b' # init marker properties self._mw, self._ms, self._mc = 7, '', 'b' # init marker edge properties self._mew, self._mec = 1, 'k' # alpha values self._alpha1 = 1