scale Color Viridis
The viridis
color maps are designed to be perceptually-uniform, both in regular form and also when converted to black-and-white.
The viridis
color scales are suitable for viewers with common forms of colour blindness. See also https://bids.github.io/colormap.
Examples
Parameters
Name of colormap. Supported colormaps:
"magma" (or "A"),
"inferno" (or "B")
"plasma" (or "C")
"viridis" (or "D")
"cividis" (or "E")
"turbo"
"twilight"
Alpha transparency channel (0 means transparent and 1 means opaque).
default = 0.0. Corresponds to a color hue to start at. Accepts values between 0 and 1. Should be less than end
.
default = 1.0. Corresponds to a color hue to end with. Accepts values between 0 and 1. Should be greater than begin
.
default = 1. Sets the order of colors in the scale. If -1, the order of colors is reversed.
The name of the scale - used as the axis label or the legend title. If null, the default, the name of the scale is taken from the first mapping used for that aesthetic.
A list of data values specifying the positions of ticks, or a dictionary which maps the tick labels to the breaks values.
A list of labels on ticks, or a dictionary which maps the breaks values to the tick labels.
The maximum label length (in characters) before trimming is applied.
Data range for this scale. Continuous scale: a pair of numbers providing limits of the scale. Use null
to refer to default min/max. Discrete scale: list of data values to display, and their order.
An aesthetic value which is used when data in not available.
Specifies the format pattern for labels on the scale.
Guide to use for this scale. It can either be a string ("colorbar", "legend") or a call to a guide function (guideColorbar()
, guideLegend()
) specifying additional arguments. "none" will hide the guide.
Name of built-in transformation ("identity", "log10", "log2", "symlog", "reverse", "sqrt").
Format patterns in the format
parameter can be just a number format (like "d") or a string template where number format is surrounded by curly braces: "{d} cylinders". Note: the "$" must be escaped as "\$". For more info see: formats.html
Examples:
".2f" -> "12.45"
"Score: {.2f}" -> "Score: 12.45"
"Score: {}" -> "Score: 12.454789"