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

Method show_plot

examples/borrow_points/src/app.rs:22–29  ·  view source on GitHub ↗
(&self, ui: &mut egui::Ui)

Source from the content-addressed store, hash-verified

20
21impl BorrowPointsExample {
22 pub fn show_plot(&self, ui: &mut egui::Ui) -> Response {
23 Plot::new("My Plot")
24 .legend(Legend::default())
25 .show(ui, |plot_ui| {
26 plot_ui.line(Line::new("curve", PlotPoints::Borrowed(&self.points)).name("curve"));
27 })
28 .response
29 }
30
31 #[expect(clippy::unused_self, reason = "required by the example template")]
32 pub fn show_controls(&self, ui: &mut egui::Ui) -> Response {

Callers 1

show_uiMethod · 0.45

Calls 4

showMethod · 0.80
legendMethod · 0.80
lineMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected