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

Skip to content

Commit 4900681

Browse files
authored
Merge pull request #10413 from QuLogic/fix-section-names
DOC: Fix typos in section names.
2 parents ca0195c + c5081dc commit 4900681

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

lib/matplotlib/figure.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,10 @@ def set_constrained_layout_pads(self, **kwargs):
555555
Set padding for ``constrained_layout``. Note the kwargs can be passed
556556
as a dictionary ``fig.set_constrained_layout(**paddict)``.
557557
558-
Parameters:
559-
-----------
558+
See :doc:`/tutorials/intermediate/constrainedlayout_guide`
559+
560+
Parameters
561+
----------
560562
561563
w_pad : scalar
562564
Width padding in inches. This is the pad around axes
@@ -574,7 +576,6 @@ def set_constrained_layout_pads(self, **kwargs):
574576
Height padding between subplots, expressed as a fraction of the
575577
subplot width. The total padding ends up being h_pad + hspace.
576578
577-
See :doc:`/tutorials/intermediate/constrainedlayout_guide`
578579
"""
579580

580581
todo = ['w_pad', 'h_pad', 'wspace', 'hspace']
@@ -592,13 +593,13 @@ def get_constrained_layout_pads(self, relative=False):
592593
Returns a list of `w_pad, h_pad` in inches and
593594
`wspace` and `hspace` as fractions of the subplot.
594595
595-
Parameter:
596-
-----------
596+
See :doc:`/tutorials/intermediate/constrainedlayout_guide`
597+
598+
Parameters
599+
----------
597600
598601
relative : boolean
599602
If `True`, then convert from inches to figure relative.
600-
601-
See: :doc:`/tutorials/intermediate/constrainedlayout_guide`
602603
"""
603604
w_pad = self._constrained_layout_pads['w_pad']
604605
h_pad = self._constrained_layout_pads['h_pad']

0 commit comments

Comments
 (0)