Remove a fill from the plot by its ID.
(&mut self, id: &ShapeId)
| 210 | /// Remove a data series from the plot by its ID. |
| 211 | pub fn remove_series(&mut self, id: &ShapeId) -> Result<(), SeriesError> { |
| 212 | if self.series.shift_remove(id).is_some() { |
| 213 | self.hidden_shapes.remove(id); |
| 214 | self.data_version += 1; |
| 215 | Ok(()) |
| 216 | } else { |
| 217 | Err(SeriesError::NotFound(*id)) |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | /// Remove a fill from the plot by its ID. |
| 222 | pub fn remove_fill(&mut self, id: &ShapeId) -> Result<(), SeriesError> { |
| 223 | if self.fills.shift_remove(id).is_some() { |
nothing calls this directly
no outgoing calls
no test coverage detected