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

Ouverte
#1,230 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 3 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
55/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
matplotlib, python
Domaine
backend, testing

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Python
Étoiles
1.1k
Forks
280
Merge moyen
3 j 2 h
PR mergées (30 j)
24

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de RocketPy-Team/RocketPy

Toutes les issues de RocketPy-Team/RocketPy

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.