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

Method clear_pick

src/plot_widget.rs:502–506  ·  view source on GitHub ↗

Clear all pick points from the plot.

(&mut self)

Source from the content-addressed store, hash-verified

500 let mut nearest_point = None;
501 for (i, position) in series.positions.iter().enumerate() {
502 let distance = (position[1] - y).abs();
503 if distance < min_distance {
504 min_distance = distance;
505 nearest_point = Some(PointId {
506 series_id,
507 point_index: i,
508 });
509 }

Callers 1

updateMethod · 0.80

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected