Skip to content

Commit

Permalink
Update examples/save_plot/src/main.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Emil Ernerfeldt <[email protected]>
  • Loading branch information
hacknus and emilk authored Aug 10, 2023
1 parent c68ec3a commit 872dbeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/save_plot/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl eframe::App for MyApp {
let inner = my_plot.show(ui, |plot_ui| {
plot_ui.line(Line::new(PlotPoints::from(graph)).name("curve"));
});
// pass along the position of the plot
// Remember the position of the plot
plot_rect = Some(inner.response.rect);
});

Expand Down

0 comments on commit 872dbeb

Please sign in to comment.