-
Notifications
You must be signed in to change notification settings - Fork 45
Separation of data preparation and plotting for criterion_plot()
#600
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
🚀 New features to boost your workflow:
|
7fb293a
to
839ca0c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very nice already. I have a few remarks.
Let me know if you have any questions; thank you!!
I have made the suggested changes and I believe that the failing test is unrelated. |
|
Summary of changes
Separated the logic for data preparation and plotting in
criterion_plot()
. This is done to easily enable the addition of plotting backends.LineData
stores required data for plotting a single line.CriterionPlotData
stores all backend agnostic data needed forcriterion_plot()
[lines and multistart_lines if applicable]PlotConfig
stores global settings of plotsAdditionally, we could add a new parameter such as
return_data
- which would return theplot_data
instead of plotting. This can be discussed, if it is worth looking into.