Lets-Plot for Kotlin 4.12.0 Help

Aesthetics

Point Shapes

Point shapes

See example notebook.

Line Types

Predefined Patterns

Predefined line types

See example notebook.

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

See example notebook.

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").

See example notebook.

Font Face

Font faces

The default font face is 'plain'.

See example notebook.

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. "#0077ff", "#07f".

  • Transparent - an empty string ("") or the aliases "blank" and "transparent" for a fully transparent color.

  • Named colors from a predefined list of color names.

  • System colors depending on the current theme flavor, one of:

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

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

See example notebook.

10 November 2025