You can use the bottom
keyword for subplots_adjust
to set the point to which the subplots should be drawn with respect to the figure.
So for example:
fig.subplots_adjust(wspace=0.5, hspace=0.5, bottom=0)
The legend will then be close to the 'lowest' subplots. Here is a crop from the bottom of the resulting image:
Besides bottom
, there are also left
, right
and top
keywords.