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])
| 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 { |
no outgoing calls