Repository navigation
MNT: draw Monte Carlo box plots with orientation instead of vert - #1235
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1235 +/- ##
========================================
Coverage 87.33% 87.33%
========================================
Files 130 130
Lines 18161 18161
========================================
Hits 15861 15861
Misses 2300 2300 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Fixes #1230. Matplotlib 3.11 deprecates boxplot(vert=...) and 3.13 removes it, so both box plots in MonteCarloPlots now pass orientation="horizontal". That argument only exists from Matplotlib 3.10, so the floor in requirements.txt moves from 3.9 to 3.10. The new tests turn MatplotlibDeprecationWarning into an error and fail on the old calls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XDW575d9C9zpS7Z1v2KXVq
Gui-FernandesBR
force-pushed
the
mnt/boxplot-orientation
branch
from
December 6, 2026 00:32
97581f1 to
c6eb782
Compare
Gui-FernandesBR
commented
Dec 6, 2026
Gui-FernandesBR
left a comment
Member
Author
There was a problem hiding this comment.
Review Summary
Blockers: 0 · Warnings: 1 · Suggestions: 2
No blockers — requirements.txt and rocketpy/plots/monte_carlo_plots.py look clean and cover all boxplot / vert= usages in the repo. (Note: no CLAUDE.md in this repo, so only the general checklist was applied.)
Details
- Warning: Close matplotlib figures in a fixture/teardown so failures do not leak figures or read stale ones.
- Suggestions: Use distinct data ranges for
otherin the comparison test; assertmock_show.assert_called_once()to remove# pylint: disable=unused-argument.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1230
Matplotlib 3.11 deprecates
boxplot(vert=...)and 3.13 removes it, so both box plots inMonteCarloPlotsnow passorientation="horizontal". That argument only exists from Matplotlib 3.10 (December 2024), so the floor inrequirements.txtmoves from 3.9 to 3.10 instead of branching on the installed version. The two new tests turnMatplotlibDeprecationWarninginto an error and fail on the old calls with Matplotlib 3.11.🤖 Generated with Claude Code
https://claude.ai/code/session_01XDW575d9C9zpS7Z1v2KXVq