Skip to main content

debug_histogram

Function debug_histogram 

Source
pub fn debug_histogram<S, V>(title: &str, h: &Histogram<S, V>)
Available on crate feature debug-window only.
Expand description

Display a histogram in a debug window using default render options.

This is the histogram counterpart of crate::show: it blocks until the user presses a key or closes the window. See debug_histogram_with for control over the rendered appearance, and debug_histogram_layers for multi-layer plots.

ยงPlatform notes

On macOS, this function must be called from the main thread. Internally it goes through the same one-thread-per-process winit event loop used by crate::show, so do not mix this with crate::DebugDisplay::run in the same process.