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

Method add_hline

src/plot_widget.rs:262–265  ·  view source on GitHub ↗

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

(&mut self, hline: HLine)

Source from the content-addressed store, hash-verified

260 return Err(SeriesError::FillEndpointNotFound(fill.begin));
261 }
262 if !self.is_fill_endpoint_available(fill.end) {
263 return Err(SeriesError::FillEndpointNotFound(fill.end));
264 }
265 self.fills.insert(fill.id, fill);
266 self.data_version = self.data_version.wrapping_add(1);
267 Ok(())
268 }

Callers 4

newFunction · 0.45
newFunction · 0.45
newFunction · 0.45
newMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected