Add arrows.
(&mut self, mut arrows: crate::Arrows<'a>)
| 2071 | |
| 2072 | /// Add arrows. |
| 2073 | pub fn arrows(&mut self, mut arrows: crate::Arrows<'a>) { |
| 2074 | if arrows.origins.is_empty() || arrows.tips.is_empty() { |
| 2075 | return; |
| 2076 | } |
| 2077 | |
| 2078 | // Give the arrows an automatic color if no color has been assigned. |
| 2079 | if arrows.color == Color32::TRANSPARENT { |
| 2080 | arrows.color = self.auto_color(); |
| 2081 | } |
| 2082 | self.items.push(Box::new(arrows)); |
| 2083 | } |
| 2084 | |
| 2085 | /// Add an image. |
| 2086 | pub fn image(&mut self, image: crate::PlotImage) { |
no test coverage detected