def __init__(self, curveparam=None, errorbarparam=None): ErrorBarCurveItem.__init__(self, curveparam, errorbarparam) self.setOrientation(self.ORIENTATION) self.perimage_mode = True self.autoscale_mode = False self.apply_lut = False self.source = None
def perror( self, x, y, dx, dy, curveparam, errorbarparam, xaxis="bottom", yaxis="left" ): """ Make an errorbar curve `plot item` based on a `guiqwt.styles.ErrorBarParam` instance (:py:class:`guiqwt.curve.ErrorBarCurveItem` object) * x: 1D NumPy array * y: 1D NumPy array * dx: None, or scalar, or 1D NumPy array * dy: None, or scalar, or 1D NumPy array * curveparam: `guiqwt.styles.CurveParam` object * errorbarparam: `guiqwt.styles.ErrorBarParam` object * xaxis, yaxis: X/Y axes bound to curve Usage:: perror(x, y, dx, dy, curveparam, errorbarparam) """ curve = ErrorBarCurveItem(curveparam, errorbarparam) curve.set_data(x, y, dx, dy) curve.update_params() self.__set_curve_axes(curve, xaxis, yaxis) return curve
def perror(self, x, y, dx, dy, curveparam, errorbarparam, xaxis="bottom", yaxis="left"): """ Make an errorbar curve `plot item` based on a `guiqwt.styles.ErrorBarParam` instance (:py:class:`guiqwt.curve.ErrorBarCurveItem` object) * x: 1D NumPy array * y: 1D NumPy array * dx: None, or scalar, or 1D NumPy array * dy: None, or scalar, or 1D NumPy array * curveparam: `guiqwt.styles.CurveParam` object * errorbarparam: `guiqwt.styles.ErrorBarParam` object * xaxis, yaxis: X/Y axes bound to curve Usage:: perror(x, y, dx, dy, curveparam, errorbarparam) """ curve = ErrorBarCurveItem(curveparam, errorbarparam) curve.set_data(x, y, dx, dy) curve.update_params() self.__set_curve_axes(curve, xaxis, yaxis) return curve