Add a vertical line. Can be useful e.g. to show min/max bounds or similar. Always fills the full height of the plot.
(&mut self, mut vline: crate::VLine)
| 2101 | /// Can be useful e.g. to show min/max bounds or similar. |
| 2102 | /// Always fills the full height of the plot. |
| 2103 | pub fn vline(&mut self, mut vline: crate::VLine) { |
| 2104 | if vline.stroke.color == Color32::TRANSPARENT { |
| 2105 | vline.stroke.color = self.auto_color(); |
| 2106 | } |
| 2107 | self.items.push(Box::new(vline)); |
| 2108 | } |
| 2109 | |
| 2110 | /// Add an axis-aligned span. |
| 2111 | /// |