trying to wrap my head around how to do some simple plotting in egui. I have a data member in myapp struct that is a Vec::<Value>.
Is there a way to pass that into Points::new(Values::from_values(data.to_vec()) without creating a copy of the values? Examples generally generate on the fly but it feels a bit excessive to reading in from disc and parse the text data for each frame.
struct MyApp {
data: Vec<Value>,
}
myplot.show(ui, |plot_ui| {
let points = Points::new(Values::from_values(data.to_vec()));
plot_ui.points(points);