Lets-Plot for Kotlin 4.9.3 Help

Aesthetics

Color and Fill

Colors and fills of geometries can be specified in the following ways:

  • RGB/RGBA (e.g. "rgb(0, 0, 255)", "rgba(0, 0, 255, 0.5)").

  • HEX (e.g. "#0000ff", "#00f").

  • A name, one of:

    Color names
  • A system color name, one of:

  • Color 'pen'
  • Color 'brush'
  • Color 'paper'

  • An instance of the java.awt.Color class.

Point Shapes

Point shapes

Line Types

Predefined Patterns

Predefined line types

Custom Patterns

Ways to specify the linetype:

  • list, defining the pattern of dashes and gaps used to draw the line: listOf(dash, gap, ...);

  • pair of offset and pattern: offset to listOf(dash, gap, ...);

  • string of an even number (up to eight) of hexadecimal digits which give the lengths in consecutive positions in the string.

Custom line types

Text

Font Family

Universal font names:

Font families

The default font family is 'sans'.

You can also use the name of any other font installed on your system (e.g. "Times New Roman").

Font Face

Font faces

The default font face is 'plain'.

Last modified: 01 November 2024