Bug summary
wspace and hspace in Figure.subfigures do nothing.
Code for reproduction
import matplotlib.pyplot as plt
figs = plt.figure().subfigures(2, 2, wspace=0, hspace=0)
for fig in figs.flat:
fig.subplots().plot([1, 2])
plt.show()
Actual outcome
Same figure independently of the values of hspace and wspace.
Expected outcome
|
wspace, hspace : float, default: None |
|
The amount of width/height reserved for space between subfigures, |
|
expressed as a fraction of the average subfigure width/height. |
|
If not given, the values will be inferred from a figure or |
|
rcParams when necessary. |
Additional information
No response
Operating system
OS/X
Matplotlib Version
3.7.1
Matplotlib Backend
MacOSX
Python version
Python 3.10.9
Jupyter version
No response
Installation
conda
Bug summary
wspaceandhspaceinFigure.subfiguresdo nothing.Code for reproduction
Actual outcome
Same figure independently of the values of hspace and wspace.
Expected outcome
matplotlib/lib/matplotlib/figure.py
Lines 1550 to 1554 in b3bd929
Additional information
No response
Operating system
OS/X
Matplotlib Version
3.7.1
Matplotlib Backend
MacOSX
Python version
Python 3.10.9
Jupyter version
No response
Installation
conda