package matrix

  1. Overview
  2. Docs

Module Matrix_charts.ThemeSource

Colour and style themes for charts.

A theme controls the colour palette for auto-styling marks, background, and styles for axes, gridlines, labels, tooltips, crosshairs, and markers. It also embeds a Charset.t.

Sourcetype t = {
  1. palette : Ansi.Color.t array;
    (*

    Colour cycle for marks without explicit styles. Marks are assigned colours sequentially, wrapping around.

    *)
  2. background : Ansi.Color.t option;
    (*

    Plot background. None leaves the grid unchanged.

    *)
  3. axes : Ansi.Style.t;
    (*

    Axis lines and tick marks.

    *)
  4. border : Ansi.Style.t;
    (*

    Chart frame/border.

    *)
  5. grid : Ansi.Style.t;
    (*

    Major gridlines.

    *)
  6. grid_minor : Ansi.Style.t;
    (*

    Minor gridlines.

    *)
  7. labels : Ansi.Style.t;
    (*

    Axis labels and titles.

    *)
  8. tooltip : Ansi.Style.t;
    (*

    Tooltip text and background.

    *)
  9. tooltip_border : Ansi.Style.t option;
    (*

    Tooltip border. None draws no border.

    *)
  10. crosshair : Ansi.Style.t;
    (*

    Crosshair lines.

    *)
  11. marker : Ansi.Style.t;
    (*

    Highlight markers.

    *)
  12. charset : Charset.t;
    (*

    Glyph character set.

    *)
}
Sourceval dark : t

Dark theme for dark terminal backgrounds.

Sourceval light : t

Light theme for light terminal backgrounds.

Sourceval default : t

default is dark.

Sourceval with_charset : Charset.t -> t -> t

with_charset cs t is t with character set cs.