altair.SchemeParams#
- class altair.SchemeParams(name=Undefined, count=Undefined, extent=Undefined, **kwds)#
SchemeParams schema wrapper
Mapping(required=[name])
- Attributes
- namestring
A color scheme name for ordinal scales (e.g.,
"category10"
or"blues"
).For the full list of supported schemes, please refer to the Vega Scheme reference.
- countfloat
The number of colors to use in the scheme. This can be useful for scale types such as
"quantize"
, which use the length of the scale range to determine the number of discrete bins for the scale domain.- extentList(float)
The extent of the color range to use. For example
[0.2, 1]
will rescale the color scheme such that color values in the range [0, 0.2) are excluded from the scheme.
- __init__(name=Undefined, count=Undefined, extent=Undefined, **kwds)#
Methods
__init__
([name, count, extent])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