egui/examples/save_plot
hacknus 871041c4e7
Added an example to save plot to image (#2769)
* implement save_plot

* fix for check.sh

* clippy

* add save_plot to Cargo.lock

* adapted for PR #2676 (removes unsafe code)

* add some comments

* implemented the comments from emilk

* update comments in code

* rustfmt

* remove picked_path

* add more comments

* removed unused import

* use `inner.response.rect` as the plot position

* remove plot_location from MyApp members

* sort entries

* Update examples/save_plot/src/main.rs

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>

* use env_logger instead of tracing subscriber

* use env_logger instead of tracing subscriber and combine if let

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2023-08-10 12:35:11 +02:00
..
src Added an example to save plot to image (#2769) 2023-08-10 12:35:11 +02:00
Cargo.toml Added an example to save plot to image (#2769) 2023-08-10 12:35:11 +02:00
README.md Added an example to save plot to image (#2769) 2023-08-10 12:35:11 +02:00

README.md

This example shows that you can save a plot in egui as a png.

cargo run -p save_plot