package matrix
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9
doc/matrix.charts/Matrix_charts/View/index.html
Module Matrix_charts.ViewSource
Viewport windowing for zoom and pan.
A view constrains which portion of the data domain is visible. Store a t in your application model and pass it to Matrix_charts.draw. Use empty to show the full data extent.
All window operations produce valid windows: min is always < max, with a minimum span enforced to prevent degenerate ranges.
The type for 1D ranges. Invariant: min < max.
The type for viewport state. None on any axis means "show full domain".
window ~min ~max is a window over [min, max]. If min > max the values are swapped. A minimum span is enforced.
zoom w ~factor zooms around the centre of w. factor > 1 zooms in (smaller range), factor < 1 zooms out. Non-positive factors are treated as 1.0.
zoom_around w ~center ~factor zooms around center, preserving its relative position within the window.