ridgeplot._color.colorscale module¶
Continuous colorscale utilities.
- class ridgeplot._color.colorscale.ColorscaleValidator[source]¶
Bases:
ColorscaleValidator
- validate_coerce(v)[source]¶
Validate whether an input value is compatible with this property, and coerce the value to be compatible of possible.
- Parameters:
v – The input value to be validated
- Raises:
ValueError – if v cannot be coerced into a compatible form
- Return type:
The input `v
in a form that’s compatible with this property`
- ridgeplot._color.colorscale.validate_coerce_colorscale(colorscale)[source]¶
Convert mixed colorscale representations to the canonical
ColorScale
format.
- ridgeplot._color.colorscale.list_all_colorscale_names()[source]¶
Get a list of all available continuous colorscale names.
Deprecated since version 0.2.0: This function is deprecated and will be removed in a future version. Please use
px.colors.named_colorscales()
from Plotly Express for the same functionality. For more details, visit: https://plotly.com/python/builtin-colorscales/#named-builtin-continuous-color-scales