8000 Put correct version in constrained layout tutorial · matplotlib/matplotlib@6930821 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6930821

Browse files
committed
Put correct version in constrained layout tutorial
1 parent 62dbc20 commit 6930821

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tutorials/intermediate/constrainedlayout_guide.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import matplotlib
2+
13
"""
24
================================
35
Constrained Layout Guide
@@ -30,7 +32,7 @@
3032
3133
.. warning::
3234
33-
As of Matplotlib 2.2, Constrained Layout is **experimental**. The
35+
As of Matplotlib {version}, Constrained Layout is **experimental**. The
3436
behaviour and API are subject to change, or the whole functionality
3537
may be removed without a deprecation period. If you *require* your
3638
plots to be absolutely reproducible, get the Axes positions after
@@ -45,7 +47,7 @@
4547
titles (or sometimes even ticklabels) go outside the figure area, and are thus
4648
clipped.
4749
48-
"""
50+
""".format(version=matplotlib.__version__)
4951

5052
# sphinx_gallery_thumbnail_number = 18
5153

0 commit comments

Comments
 (0)
0