cheatsheets icon indicating copy to clipboard operation
cheatsheets copied to clipboard

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

Open K-gihu opened this issue 2 years ago • 3 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'.

K-gihu avatar May 05 '22 15:05 K-gihu

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

oscargus avatar May 05 '22 15:05 oscargus

Thanks. Can you make a PR?

rougier avatar May 06 '22 18:05 rougier

I might make one PR later when I have time.

K-gihu avatar May 07 '22 06:05 K-gihu