altair.theme.ProjectionKwds#
- class altair.theme.ProjectionKwds#
altair.Projection
TypedDict
wrapper.- Parameters:
- center
The projection’s center, a two-element array of longitude and latitude in degrees.
Default value:
[0, 0]
- clipAngle
The projection’s clipping circle radius to the specified angle in degrees. If
null
, switches to antimeridian cutting rather than small-circle clipping.- clipExtent
The projection’s viewport clip extent to the specified bounds in pixels. The extent bounds are specified as an array
[[x0, y0], [x1, y1]]
, wherex0
is the left-side of the viewport,y0
is the top,x1
is the right andy1
is the bottom. Ifnull
, no viewport clipping is performed.- coefficient
The coefficient parameter for the
hammer
projection.Default value:
2
- distance
For the
satellite
projection, the distance from the center of the sphere to the point of view, as a proportion of the sphere’s radius. The recommended maximum clip angle for a givendistance
is acos(1 / distance) converted to degrees. If tilt is also applied, then more conservative clipping may be necessary.Default value:
2.0
- extent
- fit
- fraction
The fraction parameter for the
bottomley
projection.Default value:
0.5
, corresponding to a sin(ψ) where ψ = π/6.- lobes
The number of lobes in projections that support multi-lobe views:
berghaus
,gingery
, orhealpix
. The default value varies based on the projection type.- parallel
The parallel parameter for projections that support it:
armadillo
,bonne
,craig
,cylindricalEqualArea
,cylindricalStereographic
,hammerRetroazimuthal
,loximuthal
, orrectangularPolyconic
. The default value varies based on the projection type.- parallels
For conic projections, the two standard parallels that define the map layout. The default depends on the specific conic projection used.
- pointRadius
The default radius (in pixels) to use when drawing GeoJSON
Point
andMultiPoint
geometries. This parameter sets a constant default value. To modify the point radius in response to data, see the corresponding parameter of the GeoPath and GeoShape transforms.Default value:
4.5
- precision
The threshold for the projection’s adaptive resampling to the specified value in pixels. This value corresponds to the Douglas-Peucker distance. If precision is not specified, returns the projection’s current resampling precision which defaults to
√0.5 ≅ 0.70710…
.- radius
The radius parameter for the
airy
orgingery
projection. The default value varies based on the projection type.- ratio
The ratio parameter for the
hill
,hufnagel
, orwagner
projections. The default value varies based on the projection type.- reflectX
Sets whether or not the x-dimension is reflected (negated) in the output.
- reflectY
Sets whether or not the y-dimension is reflected (negated) in the output.
- rotate
The projection’s three-axis rotation to the specified angles, which must be a two- or three-element array of numbers [
lambda
,phi
,gamma
] specifying the rotation angles in degrees about each spherical axis. (These correspond to yaw, pitch and roll.)Default value:
[0, 0, 0]
- scale
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.
- size
Used in conjunction with fit, provides the width and height in pixels of the area to which the projection should be automatically fit.
- spacing
The spacing parameter for the
lagrange
projection.Default value:
0.5
- tilt
The tilt angle (in degrees) for the
satellite
projection.Default value:
0
.- translate
The projection’s translation offset as a two-element array
[tx, ty]
.- type
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
- __init__(*args, **kwargs)#
Methods
__init__
(*args, **kwargs)clear
()copy
()fromkeys
(iterable[, value])Create a new dictionary with keys from iterable and values set to value.
get
(key[, default])Return the value for key if key is in the dictionary, else default.
items
()keys
()pop
(key[, default])If the key is not found, return the default if given; otherwise, raise a KeyError.
popitem
(/)Remove and return a (key, value) pair as a 2-tuple.
setdefault
(key[, default])Insert key with a value of default if key is not in the dictionary.
update
([E, ]**F)If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
values
()Attributes
center
clipAngle
clipExtent
coefficient
distance
extent
fit
fraction
lobes
parallel
parallels
pointRadius
precision
radius
ratio
reflectX
reflectY
rotate
scale
size
spacing
tilt
translate
type