Add a horizontal line. Can be useful e.g. to show min/max bounds or similar. Always fills the full width of the plot.
(&mut self, mut hline: crate::HLine)
| 2091 | /// Can be useful e.g. to show min/max bounds or similar. |
| 2092 | /// Always fills the full width of the plot. |
| 2093 | pub fn hline(&mut self, mut hline: crate::HLine) { |
| 2094 | if hline.stroke.color == Color32::TRANSPARENT { |
| 2095 | hline.stroke.color = self.auto_color(); |
| 2096 | } |
| 2097 | self.items.push(Box::new(hline)); |
| 2098 | } |
| 2099 | |
| 2100 | /// Add a vertical line. |
| 2101 | /// Can be useful e.g. to show min/max bounds or similar. |