|
|
|
|
|
|
|
**ANNONCE** : **la version 3.6 de matplotlib** est sortie en septembre 2022 ;
|
|
|
|
la version courante est actuellement **3.6.1** (Octobre 2022)
|
|
|
|
|
|
|
|
### notes sur la version 3.6
|
|
|
|
:older_man: [Pour en savoir plus : la doc]
|
|
|
|
https://matplotlib.org/stable/users/prev_whats_new/whats_new_3.6.0.html
|
|
|
|
|
|
|
|
**Plotting methods**
|
|
|
|
- Striped lines (experimental)
|
|
|
|
The new `gapcolor` parameter to plot enables the creation of striped lines.
|
|
|
|
|
|
|
|
**Legends**
|
|
|
|
- Legend can control alignment of title and handles
|
|
|
|
- `ncol` keyword argument to legend renamed to `ncols`
|
|
|
|
|
|
|
|
**`height_ratios`** and **`width_ratios`**
|
|
|
|
subplots, subplot_mosaic accept height_ratios and width_ratios arguments
|
|
|
|
|
|
|
|
The relative width and height of columns and rows in subplots and subplot_mosaic can be controlled by passing height_ratios and width_ratios keyword arguments to the methods:
|
|
|
|
```python
|
|
|
|
fig = plt.figure()
|
|
|
|
axs = fig.subplots(3, 1, sharex=True, height_ratios=[3, 1, 1])
|
|
|
|
```
|
|
|
|
en remplacement d'une utilisation via kwargs:
|
|
|
|
```python
|
|
|
|
fig = plt.figure()
|
|
|
|
axs = fig.subplots(3, 1, sharex=True,
|
|
|
|
gridspec_kw=dict(height_ratios=[3, 1, 1]))
|
|
|
|
```
|
|
|
|
|
|
|
|
### notes sur la version 3.5
|
|
|
|
La **version 3.5.0** est sortie en novembre 2021 !
|
|
|
|
|
|
|
|
:older_man: toujours le bon réflexe : [Pour en savoir plus : la doc](https://matplotlib.org/3.5.0/users/prev_whats_new/whats_new_3.5.0.html)
|
|
|
|
|
|
|
|
Ce qui devrait être testé ici (et reporté le cas échéant dans les pages thématiques):
|
|
|
|
|
|
|
|
Figure and Axes creation / management
|
|
|
|
- subplot_mosaic supports simple Axes sharing : _comment définir rapidement une disposition de vignettes : voir ajout dans le_ [point Subplots](Point Théorie: Subplots)
|
|
|
|
- Figure now has draw_without_rendering method
|
|
|
|
|
|
|
|
Interactive tool improvements
|
|
|
|
|
|
|
|
- Colorbars now have pan and zoom functionality
|
|
|
|
- Updated the appearance of Slider widgets
|
|
|
|
- Directional sizing cursors |
|
|
|
\ No newline at end of file |