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

Method set_bottom

src/barplot.rs:236–239  ·  view source on GitHub ↗

Sets the vertical offset of each bar (bottom coordinate) Use this to create **stacked bar charts**. Pass a slice with the same number of elements as bars, where each element is the cumulative height of bars drawn below this one.

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

Source from the content-addressed store, hash-verified

234 /// number of elements as bars, where each element is the cumulative
235 /// height of bars drawn below this one.
236 pub fn set_bottom(&mut self, bottom: &[f64]) -> &mut Self {
237 self.bottom = Vec::from(bottom);
238 self
239 }
240
241 /// Sets an option to show the text (labels) of each bar
242 ///

Callers 3

draw_works_2Function · 0.80
draw_with_str_works_2Function · 0.80
test_barplot_2Function · 0.80

Calls

no outgoing calls

Tested by 3

draw_works_2Function · 0.64
draw_with_str_works_2Function · 0.64
test_barplot_2Function · 0.64