Skip to content

Commit a16da36

Browse files
committed
Storing the x and y axis information while saving the plot
1 parent 7bea6b0 commit a16da36

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ impl MyApp {
393393
.legend(egui_plot::Legend::default())
394394
.view_aspect(2.0)
395395
.allow_scroll(false)
396-
.height(250.0)
396+
.height(350.0)
397397
.width(ui.available_width())
398398
.x_axis_label("Sample No")
399399
.y_axis_label("Value")
@@ -420,7 +420,8 @@ impl MyApp {
420420
let timestamp = now.format("%Y-%m-%d %H:%M:%S");
421421
let info = ScreenshotInfo{
422422
filename: format!("{}_{}.png", plot_title.replace(":", "_"), timestamp),
423-
rect: plot_response.response.rect,
423+
// rect: plot_response.response.rect,
424+
rect: ui.min_rect(),
424425
};
425426

426427
let user_data = egui::UserData::new(Arc::new(info));

0 commit comments

Comments
 (0)