`MonteCarloPlots` box plots use `vert=`, deprecated in Matplotlib 3.11

Aperta
#1,230 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
matplotlib, python
Ambito
backend, testing

Direzione di ricerca

Start with rocketpy/plots/monte_carlo_plots.py at the two Axes.boxplot calls around lines 419 and 471, then read the TODO from issue #829 and check the supported Matplotlib versions in requirements.txt. The issue identifies the compatibility choice: use orientation only where supported, or raise the Matplotlib floor. Done means both calls avoid the Matplotlib 3.11 deprecation warning while remaining compatible with the declared dependency range.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug

MonteCarloPlots passes vert=False to Axes.boxplot in two places (L419 and L471 on develop). With Matplotlib 3.11.2 each call warns:

MatplotlibDeprecationWarning: vert: bool was deprecated in Matplotlib 3.11 and will be removed in 3.13. Use orientation: {'vertical', 'horizontal'} instead.

If 3.13 removes it as announced, these plots will fail.

To Reproduce

Any Monte Carlo box plot with Matplotlib 3.11. I saw it running test_new_run_plots_only_physical_results on Python 3.14 with -W error::DeprecationWarning.

Expected behavior

No deprecation warning, and a call that keeps working after 3.13.

Additional context

#829 kept vert on purpose, with a TODO to switch to orientation="horizontal" once Python 3.9 support ended, and requires-python is now >=3.10. The constraint left is Matplotlib's: orientation arrived in 3.10, while requirements.txt still allows 3.9.0, where boxplot(orientation=...) raises TypeError (checked with 3.9.4). So the switch needs either a check on the Matplotlib version, as pandas did in its plotting tests (pandas-dev/pandas#60584), or a floor of 3.10.

Lingua principale
Python
Stelle
1.1k
Fork
280
Merge medio
3g 2h
PR unite (30g)
24

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RocketPy-Team/RocketPy

Tutte le issue di RocketPy-Team/RocketPy

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.