graphinglib.Curve.add_errorbars#
- Curve.add_errorbars(x_error: TypeAliasForwardRef('ArrayLike') | None = None, y_error: TypeAliasForwardRef('ArrayLike') | None = None, cap_width: float | Inherit = Inherit, errorbars_color: str | Inherit = Inherit, errorbars_line_width: float | Inherit = Inherit, cap_thickness: float | Inherit = Inherit) None[source]#
Adds errorbars to the
Curve.- Parameters:
- x_error, y_errorArrayLike, optional
Arrays of x and y errors. Use one or both. Values must be non-negative.
- cap_widthfloat
Width of the errorbar caps. Typical range is
0to10points. Default depends on thefigure_styleconfiguration.- errorbars_colorstr
Color of the errorbars.
"same as curve"uses the curve color. Default depends on thefigure_styleconfiguration.- errorbars_line_widthfloat
Width of the errorbars. Typical range is
0.5to3points. Default depends on thefigure_styleconfiguration.- cap_thicknessfloat
Thickness of the errorbar caps. Typical range is
0.5to3points. Default depends on thefigure_styleconfiguration.
Notes
Color parameters accept Matplotlib color formats: named colors (
"blue"), short color strings ("b"), hex strings ("#0000ff"), grayscale strings ("0.5"), and RGB/RGBA tuples with values between0and1((0, 0, 1)or(0, 0, 1, 0.5)).