matplotlib / cheatsheets

Official Matplotlib cheat sheets

Home Page:https://matplotlib.org/cheatsheets/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'right' and 'top' in plt.subplots_adjust() are not directly padding size

K-gihu opened this issue · comments

Very thankful of the cheatsheet, but I think there's a little problem.
In 'Axes adjustments' of the second cheatsheet, 'right' directly refers to the padding between subplots' right edge and figure's right edge. However it actually refers to the relative distance between subplots' right edge and figure's left edge. The same also applies to 'top'.

Well spotted! The documentation is correct (although could be clearer): https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.subplots_adjust.html

Thanks. Can you make a PR?

I might make one PR later when I have time.