Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| python:matplotlib [2023/07/25 13:02] – [Labels des axes] add set rotation for axis phsw | python:matplotlib [2024/10/06 15:47] (Version actuelle) – [Matplotlib] add link phsw | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| + | * https:// | ||
| + | |||
| Ligne 316: | Ligne 319: | ||
| tick.set_rotation(45) | tick.set_rotation(45) | ||
| | | ||
| - | # or (with Matplotlit | + | # or (with Matplotlib |
| ax.set_xticks(ax.get_xticks(), | ax.set_xticks(ax.get_xticks(), | ||
| Ligne 586: | Ligne 589: | ||
| Pour fournir nous-mêmes les statistiques à Matplotlib : '' | Pour fournir nous-mêmes les statistiques à Matplotlib : '' | ||
| + | |||
| + | == Changer la couleur de fond == | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | <code python> | ||
| + | boxplot = ax1.boxplot(all_data, | ||
| + | for b in boxplot[' | ||
| + | b.set_facecolor(color) | ||
| + | </ | ||
| + | |||
| + | == Légende correspondante == | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | <code python> | ||
| + | boxplot = ax.boxplot(all_data, | ||
| + | ax.legend([boxplot[" | ||
| + | </ | ||