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

Method show_plot

examples/performance/src/app.rs:41–53  ·  view source on GitHub ↗
(&self, ui: &mut egui::Ui)

Source from the content-addressed store, hash-verified

39
40impl PerformanceDemo {
41 pub fn show_plot(&self, ui: &mut egui::Ui) -> Response {
42 Plot::new("performance_demo")
43 .data_aspect(1.0)
44 .show(ui, |plot_ui| {
45 plot_ui.points(
46 Points::new("markers", self.markers.clone())
47 .radius(self.marker_radius)
48 .shape(self.marker_shape)
49 .filled(true),
50 );
51 })
52 .response
53 }
54
55 pub fn show_controls(&mut self, ui: &mut egui::Ui) -> Response {
56 ui.request_repaint(); // Continuous repaint for FPS counter

Callers 1

show_uiMethod · 0.45

Calls 6

showMethod · 0.80
data_aspectMethod · 0.80
filledMethod · 0.80
shapeMethod · 0.80
radiusMethod · 0.80
pointsMethod · 0.45

Tested by

no test coverage detected