MCPcopy Create free account
hub / github.com/alceal/plotlars / is_horizontal

Function is_horizontal

crates/plotlars-plotters/src/render/boxplot.rs:80–88  ·  view source on GitHub ↗

Detect if any trace requests horizontal orientation.

(traces: &[TraceIR])

Source from the content-addressed store, hash-verified

78
79/// Detect if any trace requests horizontal orientation.
80fn is_horizontal(traces: &[TraceIR]) -> bool {
81 traces.iter().any(|t| {
82 if let TraceIR::BoxPlot(ir) = t {
83 matches!(ir.orientation, Some(Orientation::Horizontal))
84 } else {
85 false
86 }
87 })
88}
89
90pub(super) fn render_boxplot<DB: DrawingBackend>(
91 root: &DrawingArea<DB, plotters::coord::Shift>,

Callers 1

render_boxplotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected