altair.ErrorBandConfig#

class altair.ErrorBandConfig(band=Undefined, borders=Undefined, extent=Undefined, interpolate=Undefined, tension=Undefined, **kwds)#

ErrorBandConfig schema 包装器。

参数:
band布尔值, 字典, BarConfig, AreaConfig, LineConfig, MarkConfig, RectConfig, TickConfig, AnyMarkConfig
borders布尔值, 字典, BarConfig, AreaConfig, LineConfig, MarkConfig, RectConfig, TickConfig, AnyMarkConfig
extentErrorBarExtent, Literal[‘ci’, ‘iqr’, ‘stderr’, ‘stdev’]

带状区域的范围。可用选项包括

  • "ci": 将带状区域扩展到均值的置信区间。

  • "stderr": 带状区域的大小设置为标准误差值,从均值向外扩展。

  • "stdev": 带状区域的大小设置为标准差值,从均值向外扩展。

  • "iqr": 将带状区域扩展到 q1 和 q3。

默认值: "stderr"

interpolateInterpolate, Literal[‘basis’, ‘basis-open’, ‘basis-closed’, ‘bundle’, ‘cardinal’, ‘cardinal-open’, ‘cardinal-closed’, ‘catmull-rom’, ‘linear’, ‘linear-closed’, ‘monotone’, ‘natural’, ‘step’, ‘step-before’, ‘step-after’]

误差带的线条插值方法。以下选项之一

  • "linear": 分段直线段,如折线图。

  • "linear-closed": 闭合直线段形成多边形。

  • "step": 由交替的水平线和垂直线组成的分段常数函数(阶跃函数)。y 值在每对相邻 x 值的中间点发生变化。

  • "step-before": 由交替的水平线和垂直线组成的分段常数函数(阶跃函数)。y 值在 x 值之前发生变化。

  • "step-after": 由交替的水平线和垂直线组成的分段常数函数(阶跃函数)。y 值在 x 值之后发生变化。

  • "basis": B 样条曲线,端点有控制点重复。

  • "basis-open": 开放 B 样条曲线;可能不与起点或终点相交。

  • "basis-closed": 闭合 B 样条曲线,形成一个循环。

  • "cardinal": Cardinal 样条曲线,端点有控制点重复。

  • "cardinal-open": 开放 Cardinal 样条曲线;可能不与起点或终点相交,但会与其它控制点相交。

  • "cardinal-closed": 闭合 Cardinal 样条曲线,形成一个循环。

  • "bundle": 等同于 basis,除了使用张力参数来拉直样条曲线。

  • "monotone": 保留 y 单调性的三次插值。

tension浮点数

误差带插值类型的张力参数。

__init__(band=Undefined, borders=Undefined, extent=Undefined, interpolate=Undefined, tension=Undefined, **kwds)#

方法

__init__([band, borders, extent, ...])

copy([deep, ignore])

返回对象的副本。

from_dict(dct[, validate])

从字典表示构造类。

from_json(json_string[, validate])

从有效的 JSON 字符串实例化对象。

resolve_references([schema])

在此对象的 schema 或根 schema 上下文中解析引用。

to_dict([validate, ignore, context])

返回对象的字典表示。

to_json([validate, indent, sort_keys, ...])

将此对象的 JSON 表示作为字符串输出。

validate(instance[, schema])

在根 schema 上下文中根据类 schema 验证实例。

validate_property(name, value[, schema])

在根 schema 上下文中根据属性 schema 验证属性。