package matrix

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mosaic-0.3.0.tbz
sha256=a92cbbcbe016fb19fb0a749222da0e459a9567aef3f4c7340d9bd6b71c53ed6f
sha512=6a7ab054605538bb31a2b73a1a6d093981a2704c9f0af5852221c05735290d74aca7c7282298c4d0f91e86a800e2ccd94b4918af883cd963449c758eb6b272b3

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, or one that would pass the floats' range, 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. A window that would pass the floats' range is left unchanged.

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.