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

Method set_positions

src/boxplot.rs:203–206  ·  view source on GitHub ↗

Overrides the default x-axis positions of the boxes By default boxes are placed at sequential integer positions (1, 2, 3, …). Use this to spread or group boxes at custom locations.

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

Source from the content-addressed store, hash-verified

201 /// By default boxes are placed at sequential integer positions (1, 2, 3, …).
202 /// Use this to spread or group boxes at custom locations.
203 pub fn set_positions(&mut self, positions: &[f64]) -> &mut Self {
204 self.positions = positions.to_vec();
205 self
206 }
207
208 /// Sets the width of each box (default: 0.5)
209 pub fn set_width(&mut self, width: f64) -> &mut Self {

Callers 5

draw_works_2Function · 0.80
draw_mat_works_2Function · 0.80
test_boxplot_1Function · 0.80
test_boxplot_2Function · 0.80
test_boxplot_5Function · 0.80

Calls

no outgoing calls

Tested by 5

draw_works_2Function · 0.64
draw_mat_works_2Function · 0.64
test_boxplot_1Function · 0.64
test_boxplot_2Function · 0.64
test_boxplot_5Function · 0.64