Skip to main content

Module colorbar

Module colorbar 

Source

Functions§

legend_ticks
Return the same labeled ticks used by the on-screen legend for exporters and other non-ratatui renderers.
render
Render a right-hand, vertical colorbar similar to a traditional Ncview legend. The bar is intentionally cell-based so it remains useful on terminals without sixel/kitty image support.
render_preview
Draw a compact horizontal palette swatch with the view’s range labels.
render_with_metadata
render_with_units