Skip to main content

render_histogram

Function render_histogram 

Source
pub fn render_histogram<S, V>(
    h: &Histogram<S, V>,
    opts: &HistogramRenderOptions,
) -> Image<Srgba8>
Available on crate feature debug-window only.
Expand description

Render a single histogram’s bin counts to an Image<Srgba8>.

Convenience wrapper around render_histogram_layers for the classic single-bar-colour case. See that function for the rendering model.