Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP. draft. make PlotPoints accept borrowed data #3521

Closed
wants to merge 1 commit into from

Conversation

valyagolev
Copy link

When you have something that works, open a draft PR.

This is a draft PR. It's imperfect, not tested, and has some random edits. I have a question about one of them.

I'll make a better demo if this doesn't turn out to be such a bad idea (and after I've tried it in my projects)

// self,
// ui: &mut Ui,
// build_fn: Box<dyn FnOnce(&mut PlotUi) -> R + 'a>,
// ) -> PlotResponse<R> {
Copy link
Author

@valyagolev valyagolev Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder about this one. why do we need to box the one-time callback? Everything seems to work without one

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's to reduce the amount of generated code by making sure that the plotting function can be reused.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

understood, will undo the change

@Wumpf Wumpf marked this pull request as draft November 3, 2023 12:24
@emilk
Copy link
Owner

emilk commented Jul 15, 2024

egui_plot has recently been moved to its own repository, at https://github.com/emilk/egui_plot

This will hopefully speed up its development by having more reviewers and maintainers.

Please re-open this PR at https://github.com/emilk/egui_plot/pulls

See also:

@emilk emilk closed this Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants