8000 Merge pull request #18400 from jpeloquin/master · matplotlib/matplotlib@b12b3f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit b12b3f4

Browse files
authored
Merge pull request #18400 from jpeloquin/master
Clarify argument name in constrained_layout error message
2 parents f7ae157 + a158469 commit b12b3f4
< 8000 div class="prc-PageLayout-PageLayoutContent-jzDMn">

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2591,7 +2591,7 @@ def execute_constrained_layout(self, renderer=None):
25912591
cbook._warn_external("Calling figure.constrained_layout, but "
25922592
"figure not setup to do constrained layout. "
25932593
" You either called GridSpec without the "
2594-
"fig keyword, you are using plt.subplot, "
2594+
"figure keyword, you are using plt.subplot, "
25952595
"or you need to call figure or subplots "
25962596
"with the constrained_layout=True kwarg.")
25972597
return

0 commit comments

Comments
 (0)
0