MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / remove_fill

Method remove_fill

src/plot_widget.rs:212–220  ·  view source on GitHub ↗

Remove a fill from the plot by its ID.

(&mut self, id: &ShapeId)

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected