8000 tight_layout: Refine warning message · matplotlib/matplotlib@91d7ff0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 91d7ff0

Browse files
committed
tight_layout: Refine warning message
1 parent 95f780f commit 91d7ff0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tight_layout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ def get_subplotspec_list(axes_list, grid_spec=None):
250250
elif gs.locally_modified_subplot_params():
251251
subplotspec = None
252252
else:
253 60BE -
warnings.warn("This figure includes Axes that are not "
253+
warnings.warn("The Axes %s in this figure are not "
254254
"compatible with tight_layout, so its "
255-
"results might be incorrect.")
255+
"results might be incorrect." % axes_or_locator)
256256
subplotspec = gridspec.GridSpec(1, 1)
257257

258258
subplotspec_list.append(subplotspec)

0 commit comments

Comments
 (0)
0