MCPcopy Create free account
hub / github.com/cpmech/plotpy / set_errors

Method set_errors

src/barplot.rs:271–274  ·  view source on GitHub ↗

Enables error indicators (one error value per bar) When used with [`set_horizontal(true)`](Self::set_horizontal), errors apply to the x-axis instead of the y-axis.

(&mut self, errors: &[f64])

Source from the content-addressed store, hash-verified

269 /// When used with [`set_horizontal(true)`](Self::set_horizontal), errors
270 /// apply to the x-axis instead of the y-axis.
271 pub fn set_errors(&mut self, errors: &[f64]) -> &mut Self {
272 self.errors = errors.to_vec();
273 self
274 }
275
276 /// Sets extra matplotlib commands (comma separated)
277 ///

Callers 3

test_barplot_3Function · 0.80
test_barplot_4Function · 0.80
test_barplot_5Function · 0.80

Calls

no outgoing calls

Tested by 3

test_barplot_3Function · 0.64
test_barplot_4Function · 0.64
test_barplot_5Function · 0.64