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

fix: prior and posterior profile plotting #29

Merged
merged 3 commits into from
Dec 23, 2024
Merged

Conversation

hkershaw-brown
Copy link
Member

@hkershaw-brown hkershaw-brown commented Dec 23, 2024

Prior and Prior+posterior profile plotting. #9

Named columns with prior explicitly: prior_bias and prior_sq
Prior and prior+posterior plotting of rmse, bias, total spread

Note the prior plotting does not need the dataframe reshaping to long, but leaving it in to be consistent with plot_profile_prior_post for now.

I'm not sure whether plotly is the way forwards, it is pretty and nice to have the interactive plots (click by type), but matplotlib might be a better option going forwards to reproduce the DART Matlab plots. Or not. Sticking with plotty for now.

example of clickable type plot: (note y axis needs reversing)

Screenshot 2024-12-23 at 10 40 44 AM

Named columns with prior explicitly: prior_bias and prior_sq
Prior and prior+posterior plotting of rmse, bias, total spread
Note the prior plotting does not need the dataframe reshaping to long, but leaving it in to be
consistant with plot_profile_prior_post for now.
@hkershaw-brown
Copy link
Member Author

reverse axis for pressure a62ce63
Screenshot 2024-12-23 at 10 49 13 AM

Now prior columns are named 'prior_bias', 'prior_sq_err'
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 9.09091% with 60 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@bd0041c). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/pydartdiags/plots/plots.py 6.25% 60 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #29   +/-   ##
=======================================
  Coverage        ?   68.81%           
=======================================
  Files           ?        2           
  Lines           ?      574           
  Branches        ?        0           
=======================================
  Hits            ?      395           
  Misses          ?      179           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hkershaw-brown hkershaw-brown merged commit cb354e8 into main Dec 23, 2024
1 check passed
@hkershaw-brown hkershaw-brown deleted the prior_post_plots branch December 23, 2024 17:26
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.

2 participants