-
Notifications
You must be signed in to change notification settings - Fork 5
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
✨ Add plot_fitted_traces function #39
Conversation
✨ Also added some convenience functions for data pre proceessing
…rray 👌 result_dataset_mapping and thus also plot_data_and_fits and plot_fit_overview, no work with single file paths
…egths ♻️ This required to remove the argument 'wavelength_range' and instead pass the wavelengths directly to 'plot_fit_overview' which gives the user more control. For convenience the function 'select_plot_wavelengths' was added, which provies the functionality of 'wavelength_range'
'maximum_coordinate_range' and 'add_unique_figure_legend'
Codecov Report
@@ Coverage Diff @@
## main #39 +/- ##
========================================
- Coverage 6.19% 4.26% -1.94%
========================================
Files 13 17 +4
Lines 355 516 +161
Branches 41 70 +29
========================================
Hits 22 22
- Misses 333 494 +161
Continue to review full report at Codecov.
|
This needs a feature added in pyglotaran 0.5.0, for older results it will show a warning.
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.
Reviewed ok with some minor comments.
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.
Request to rename / move some functions/modules.
- Move
plot_data_and_fits
andplot_fit_overview
out ofdata.py
(where see 4, 5, 6) - Rename
data.py
toplot_data.py
(different PR) - Move
get_shifted_traces
out ofplot_traces.py
toutil.py
, remove dummycalculate_x_ranges
- Rename
plot_traces
toplot_concentrations
(to indicate we mean something different than the data + fitted traces. - Move function in 1. to (now empty) plot_traces module.
- Rename
plot_fit_overview
toplot_fitted_traces
(which plots both data + fitted traces), which allows for a future plot function which can plot only data traces (so without fits) calledplot_data_traces
. Omit the word overview which we reserve for the complete summary picture or mega pdf ^^.
I addressed the renaming and moving functions in 7ec2491 and ran the examples locally to verify that they still work. The PR should be ready for the final review now 🤞 |
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.
Minor changes requested.
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.
✨ LGTM 🎉
All tests are successful, the codecov/patch bots failing we are aware of - the coverage are currently provided by the examples of pyglotaran-examples running with this code. |
This adds a new plotting overview function to show data and fitted traces, for multiple wavelengths across datasets.
The wavelengths need to be calculated/selected separately so the user has more control over what to plot, which is especially important for wavelength axes that aren't equidistant.
Example
The below plot was created from the simultaneous_analysis_6d_disp by adding the following lines of code
Change summary
After review
Checklist
Closes issues
closes #35