-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
ENH: Display more information in MonteCarlo prints and plots #760
ENH: Display more information in MonteCarlo prints and plots #760
Conversation
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.
Overall it is looking good
Apologies for duplicate. I saw that before opening the PR but it seemed like it was unfinished and contained errors I believe this PR gets closer to resolving the original issue by combining the graphs onto the same plot Let me know anything I can do to resolve this |
No problems. Your approach looks good. Once again, thanks for your submission. |
@EvanMad our team is officially on vacations until January 6th. Meanwhile, what you could already do is to solve linter issues pointed out by the GitHub Actions CI, or also solving the merge conflicts error. |
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.
Thank you for your interest in solving this issue, @EvanMad. Overall, things look great to me! I was able to reproduce your plot when running the monte carlo usage notebook with the newest version (3.10) of matplotlib, which is good. Here are some remarks:
- I encountered an issue when trying to call the
plots.all
method with version 3.5 of matplotlib, see image (1). This might be a problem since the current minimum requirement for matplotlib in our project is >=3.0 . If you wish to reproduce the error, installmatplotlib==3.5
in a venv and run the monte carlo usage notebook; - This is merely for aesthetic reasons: we could remove the x-axis ticks, y-axis ticks, and x-axis label from the box plot, circled in red ellipsis in image (2); (unifying the plot titles might be a good idea as well, but nevermind this for now)
Image (1) - Error when plotting with version 3.5 of matplotlib
Image (2) - Suggested elements to be removed from the plot
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #760 +/- ##
===========================================
- Coverage 76.42% 76.33% -0.09%
===========================================
Files 95 96 +1
Lines 11090 11473 +383
===========================================
+ Hits 8475 8758 +283
- Misses 2615 2715 +100 ☔ View full report in Codecov by Sentry. |
done by removing height_ratios and replacing with gridspec
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,
@Lucas-Prates is the statistical side looking good to you as well?
* init: new prints test * move new prints into mc class itself * enh: boxplots added to histograms in montecarlo plots * DOC: update changelog * DOC: fix changelog issues * ENH: cleaner calculation of result parameters * enh: cleanup monte-carlo plots * STY: linting fixes and re-format * STL: remove extra files * BUG: fix compatability with matplotlib==3.5 done by removing height_ratios and replacing with gridspec --------- Co-authored-by: Evan Madurai <[email protected]>
Pull request type
Checklist
black rocketpy/ tests/
) has passed locallypytest tests -m slow --runslow
) have passed locallyCHANGELOG.md
has been updated (if relevant)Current behavior
Prints maximum, minimum, mean, std dev
Plots ^ parameters with histograms
New behavior
Prints maximum, minimum, mean, std dev, 95% PI Lower, 95% PI Upper
Plots ^ parameters with histograms and boxplots
Breaking change
Additional information
For issue #730