How to update a plot in a loop? #666
Unanswered
AJAnderson
asked this question in
Q&A
Replies: 1 comment 5 replies
-
For an example you may want to look at https://github.com/EmbarkStudios/puffin/blob/main/puffin_viewer/src/main.rs |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys,
Just getting to grips with egui. The example in the docs has line being created and then the plot widget being added to the ui https://docs.rs/egui/0.14.0/egui/widgets/plot/struct.Plot.html.
In the reference template, the app stuff is outside the main.rs file and is called into using eframe::run_native.
I have a data parsing library I'm working on where I'd like to be able to load and plot graphs. Should I be doing that in my main.rs somehow or in the app somehow. I'm a little confused as to exactly what happens with eframe::run_native. Is a new thread being spun up? Should my app.rs be calling out to my library directly, and the main only exists to kick off the gui app?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions