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

Method add_vline

src/plot_widget.rs:239–242  ·  view source on GitHub ↗

Add a vertical reference line to the plot. If there exists a line with the same `vline.id` ([ShapeId]), the old one will be replaced.

(&mut self, vline: VLine)

Source from the content-addressed store, hash-verified

237 ) -> Result<(), SeriesError> {
238 if let Some(series) = self.series.get_mut(id) {
239 f(series);
240 self.data_version += 1;
241 Ok(())
242 } else {
243 Err(SeriesError::NotFound(*id))
244 }
245 }

Callers 3

newFunction · 0.45
newFunction · 0.45
newFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected