package matrix

Build not checked
  1. Overview
  2. Docs
Fast, modern terminal toolkit for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mosaic-0.2.0.tbz
sha256=ab48bc02082f9c1deea0769a13c2935df529536630745ec3a3d718f59656109b
sha512=c0f3c490e13ca60217d9d59c9bfdf3ada12e1565f04fe2a623e7c94298d519393eabe404e2317726712bf5e7fa860780a07494e77994ac05032e71f535c56910

doc/matrix.charts/Matrix_charts/View/index.html

Module Matrix_charts.ViewSource

Sourcetype t

The type for views.

Sourceval empty : t

empty is the view without windows.

Sourceval window : string -> t -> (float * float) option

window n v is the window of scale n in v.

Sourceval set : string -> (float * float) option -> t -> t

set n w v is v with window w for scale n, or none.

Raises Invalid_argument if w is not finite and increasing.

Sourceval zoom : ?axes:[ `X | `Y | `Both ] -> figure -> float -> t -> t

zoom f k v is v with the shown domain of each continuous position scale of f on axes, `Both by default, k times narrower about its middle, in the space of the logarithms on a log scale. A window too narrow for floating-point numbers to narrow it further is left unchanged.

Raises Invalid_argument if k is not finite and positive.

Sourceval pan : figure -> by:(float * float) -> t -> t

pan f ~by:(dx, dy) v is v with the shown domain of each continuous x scale of f moved dx times its length toward greater values, and of each y scale dy times.

Sourceval clamp : figure -> t -> t

clamp f v is v with each window moved inside its scale's domain in f, and removed where it is as wide as the domain or wider.