altair.Projection#
- class altair.Projection(center=Undefined, clipAngle=Undefined, clipExtent=Undefined, coefficient=Undefined, distance=Undefined, extent=Undefined, fit=Undefined, fraction=Undefined, lobes=Undefined, parallel=Undefined, parallels=Undefined, pointRadius=Undefined, precision=Undefined, radius=Undefined, ratio=Undefined, reflectX=Undefined, reflectY=Undefined, rotate=Undefined, scale=Undefined, size=Undefined, spacing=Undefined, tilt=Undefined, translate=Undefined, type=Undefined, **kwds)#
Projection schema wrapper
Mapping(required=[])
- Attributes
- centeranyOf(
Vector2number
,ExprRef
) - clipAngleanyOf(float,
ExprRef
) - clipExtentanyOf(
Vector2Vector2number
,ExprRef
) - coefficientanyOf(float,
ExprRef
) - distanceanyOf(float,
ExprRef
) - extentanyOf(
Vector2Vector2number
,ExprRef
) - fitanyOf(List(
GeoJsonFeature
), List(Fit
),ExprRef
) - fractionanyOf(float,
ExprRef
) - lobesanyOf(float,
ExprRef
) - parallelanyOf(float,
ExprRef
) - parallelsanyOf(List(float),
ExprRef
) - pointRadiusanyOf(float,
ExprRef
) - precisionanyOf(float,
ExprRef
) - radiusanyOf(float,
ExprRef
) - ratioanyOf(float,
ExprRef
) - reflectXanyOf(boolean,
ExprRef
) - reflectYanyOf(boolean,
ExprRef
) - rotateanyOf(anyOf(
Vector2number
,Vector3number
),ExprRef
) - scaleanyOf(float,
ExprRef
) The projection’s scale (zoom) factor, overriding automatic fitting. The default scale is projection-specific. The scale factor corresponds linearly to the distance between projected points; however, scale factor values are not equivalent across projections.
- sizeanyOf(
Vector2number
,ExprRef
) - spacinganyOf(float,
ExprRef
) - tiltanyOf(float,
ExprRef
) - translateanyOf(
Vector2number
,ExprRef
) The projection’s translation offset as a two-element array
[tx, ty]
.- typeanyOf(
ProjectionType
,ExprRef
) The cartographic projection to use. This value is case-insensitive, for example
"albers"
and"Albers"
indicate the same projection type. You can find all valid projection types in the documentation.Default value:
equalEarth
- centeranyOf(
- __init__(center=Undefined, clipAngle=Undefined, clipExtent=Undefined, coefficient=Undefined, distance=Undefined, extent=Undefined, fit=Undefined, fraction=Undefined, lobes=Undefined, parallel=Undefined, parallels=Undefined, pointRadius=Undefined, precision=Undefined, radius=Undefined, ratio=Undefined, reflectX=Undefined, reflectY=Undefined, rotate=Undefined, scale=Undefined, size=Undefined, spacing=Undefined, tilt=Undefined, translate=Undefined, type=Undefined, **kwds)#
Methods
__init__
([center, clipAngle, clipExtent, ...])copy
([deep, ignore])Return a copy of the object
from_dict
(dct[, validate, _wrapper_classes])Construct class from a dictionary representation
from_json
(json_string[, validate])Instantiate the object from a valid JSON string
resolve_references
([schema])Resolve references in the context of this object's schema or root schema.
to_dict
([validate, ignore, context])Return a dictionary representation of the object
to_json
([validate, ignore, context, indent, ...])Emit the JSON representation for this object as a string.
validate
(instance[, schema])Validate the instance against the class schema in the context of the rootschema.
validate_property
(name, value[, schema])Validate a property against property schema in the context of the rootschema