Attributes

Size (Column<f64>)

  • f64 -> f64

Color (Column<piet::Color>)

  • [-1.5, 3.2, ..] -> ColorMap (continuous)

  • [0, 5, 2, ..] -> user cast to categorical -> ColorCycle (categorical)

  • ["a", "b", ..] -> user cast to categorical -> ColorCycle (categorical)

  • ["red", "green", ..] -> arbitrary color

  • None

When string, it supports css color strings with extensions.

Example of supported colors:

transparent
gold
rebeccapurple
lime
#0f0
#0f0f
#00ff00
#00ff00ff
rgb(0,255,0)
rgb(0% 100% 0%)
rgb(0 255 0 / 100%)
rgba(0,255,0,1)
hsl(120,100%,50%)
hsl(120deg 100% 50%)
hsl(-240 100% 50%)
hsl(-240deg 100% 50%)
hsl(0.3333turn 100% 50%)
hsl(133.333grad 100% 50%)
hsl(2.0944rad 100% 50%)
hsla(120,100%,50%,100%)
hwb(120 0% 0%)
hwb(480deg 0% 0% / 100%)
hsv(120,100%,100%)
hsv(120deg 100% 100% / 100%)
match dtype {
  Float64 => ColorMap,
  Categorical or Integer => ColorCycle,
  String => ColorName, 
}

Shape (Column<Shape>)

  • i64, string -> ShapeCycle (categorical)

  • string -> shape name

Last updated