altair.Position#
- class altair.Position(*args)#
Position schema 包装器。
Position 是一个坐标数组。https://tools.ietf.org/html/rfc7946#section-3.1.1 数组应包含两到三个元素。先前的 GeoJSON 规范允许更多元素(例如,可用于表示 M 值),但当前规范仅允许定义 X、Y 和(可选的)Z。
- __init__(*args)#
方法
__init__
(*args)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 验证属性。