MCPcopy Create free account
hub / github.com/emilk/egui_plot / points

Method points

egui_plot/src/plot.rs:2060–2070  ·  view source on GitHub ↗

Add data points.

(&mut self, mut points: crate::Points<'a>)

Source from the content-addressed store, hash-verified

2058
2059 /// Add data points.
2060 pub fn points(&mut self, mut points: crate::Points<'a>) {
2061 if points.series.is_empty() {
2062 return;
2063 }
2064
2065 // Give the points an automatic color if no color has been assigned.
2066 if points.color == Color32::TRANSPARENT {
2067 points.color = self.auto_color();
2068 }
2069 self.items.push(Box::new(points));
2070 }
2071
2072 /// Add arrows.
2073 pub fn arrows(&mut self, mut arrows: crate::Arrows<'a>) {

Callers 13

show_plotMethod · 0.45
show_plotMethod · 0.45
show_plotMethod · 0.45
auto_bounds_trueFunction · 0.45
shapesMethod · 0.45
geometryMethod · 0.45
shapesMethod · 0.45
geometryMethod · 0.45
shapesMethod · 0.45
geometryMethod · 0.45
shapesMethod · 0.45
find_closestMethod · 0.45

Calls 2

is_emptyMethod · 0.80
auto_colorMethod · 0.80

Tested by 1

auto_bounds_trueFunction · 0.36