Skip to content

fix: matplotlib boxplot compat for montecarlo maxdd plot - #15

Merged
diegoalvarezmgl merged 1 commit into
mainfrom
fix/matplotlib-boxplot-compat
Jul 8, 2026
Merged

fix: matplotlib boxplot compat for montecarlo maxdd plot#15
diegoalvarezmgl merged 1 commit into
mainfrom
fix/matplotlib-boxplot-compat

Conversation

@diegoalvarezmgl

Copy link
Copy Markdown
Owner

Summary

  • Fixed html_montecarlo Max Drawdown boxplot crashing on matplotlib 3.7–3.9 with TypeError from unsupported orientation= / tick_labels= kwargs.
  • Added signature-based boxplot_compat_kwargs() shim so the plot works from matplotlib 3.7 through 3.11+.
  • Bumped version to 0.4.5 with CHANGELOG entry and regression tests.

Test plan

  • pytest passes (260 tests)
  • Regression tests for boxplot_compat_kwargs (legacy + modern signatures)
  • Regression test for maxdd_distribution_figure render path
  • ruff check on touched files
  • Manual html_montecarlo smoke on matplotlib 3.11

Made with Cursor

html_montecarlo crashed on matplotlib 3.7–3.9 because maxdd_distribution_figure
used orientation=/tick_labels= (3.9+/3.10+ only). Route those kwargs through a
signature-based shim so the declared matplotlib>=3.7 floor works through 3.11+.

Co-authored-by: Cursor <cursoragent@cursor.com>
@diegoalvarezmgl
diegoalvarezmgl merged commit e5b2c68 into main Jul 8, 2026
6 checks passed
@diegoalvarezmgl
diegoalvarezmgl deleted the fix/matplotlib-boxplot-compat branch July 8, 2026 19:36
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.

1 participant