Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e0d7c9

Browse files
author
Mathias Bockwoldt
authored
tight_layout is a method of fig, not ax. Closes matplotlib#67.
1 parent af15065 commit 4e0d7c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cheatsheets.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@
718718
ax.\textbf{tick\_params}(width=10, …)\\
719719
ax.\textbf{set\_axis\_[on|off]}()\\
720720
\\
721-
ax.\textbf{tight\_layout}()\\
721+
fig.\textbf{tight\_layout}()\\
722722
plt.\textbf{gcf}(), plt.\textbf{gca}()\\
723723
mpl.\textbf{rc}('axes', linewidth=1, …)\\
724724
fig.patch.\textbf{set\_alpha}(0)\\

0 commit comments

Comments
 (0)