8000 Add newlines to gca() warning · matplotlib/matplotlib@b519966 · GitHub
[go: up one dir, main page]

Skip to content

Commit b519966

Browse files
committed
Add newlines to gca() warning
1 parent 671100f commit b519966

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/matplotlib/figure.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,11 +1822,12 @@ def gca(self, **kwargs):
18221822
"3.0",
18231823
"Calling `gca()` using the same arguments as a "
18241824
"previous axes currently reuses the earlier "
1825-
"instance. In a future version, a new instance will "
1826-
"always be created and returned. Meanwhile, this "
1827-
"warning can be suppressed, and the future behavior "
1828-
"ensured, by passing a unique label to each axes "
1829-
"instance.")
1825+
"instance.\n"
1826+
"In a future version, a new instance will "
1827+
"always be created and returned.\n"
1828+
"Meanwhile, this warning can be suppressed, and the "
1829+
"future behavior ensured, by passing a unique label "
1830+
"to each axes instance.")
18301831
return cax
18311832
else:
18321833
warnings.warn('Requested projection is different from '

0 commit comments

Comments
 (0)
0