altair.Point#

class altair.Point(coordinates=Undefined, type=Undefined, bbox=Undefined, **kwds)#

Point 模式包装器。

Point 几何对象。https://tools.ietf.org/html/rfc7946#section-3.1.2

参数:
coordinatesSequence[float], Position

坐标是一个坐标数组。https://tools.ietf.org/html/rfc7946#section-3.1.1 数组应包含两到三个元素。之前的 GeoJSON 规范允许更多元素(例如,可用于表示 M 值),但当前规范仅允许定义 X、Y 和(可选)Z。

typeLiteral[‘Point’]

指定 GeoJSON 对象的类型。

bboxBBox, Sequence[float]

对象的几何图形、要素或要素集合的坐标范围的边界框。https://tools.ietf.org/html/rfc7946#section-5

__init__(coordinates=Undefined, type=Undefined, bbox=Undefined, **kwds)#

方法

__init__([coordinates, type, bbox])

copy([deep, ignore])

返回对象的副本。

from_dict(dct[, validate])

从字典表示构造类。

from_json(json_string[, validate])

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

resolve_references([schema])

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

to_dict([validate, ignore, context])

返回对象的字典表示。

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

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

validate(instance[, schema])

在根模式的上下文中验证实例是否符合类模式。

validate_property(name, value[, schema])

在根模式的上下文中验证属性是否符合属性模式。