Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/matplotlib/gridspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ def get_grid_positions(self, fig):

fig_tops, fig_bottoms = (top - cell_hs).reshape((-1, 2)).T
fig_lefts, fig_rights = (left + cell_ws).reshape((-1, 2)).T

# avoid floating-point precision where A + (B - A) does not equal B
fig_bottoms[-1] = bottom
fig_rights[-1] = right

return fig_bottoms, fig_tops, fig_lefts, fig_rights

@staticmethod
Expand Down
Loading