Skip to content

Commit 23de96c

Browse files
committed
DOC: simplify cross references
1 parent 81382c0 commit 23de96c

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

lib/matplotlib/figure.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -1576,14 +1576,12 @@ def subplot_mosaic(self, layout, *, subplot_kw=None, gridspec_kw=None,
15761576
layout.
15771577
15781578
subplot_kw : dict, optional
1579-
Dictionary with keywords passed to the
1580-
:meth:`~matplotlib.figure.Figure.add_subplot` call used to create
1581-
each subplot.
1579+
Dictionary with keywords passed to the `.Figure.add_subplot` call
1580+
used to create each subplot.
15821581
15831582
gridspec_kw : dict, optional
1584-
Dictionary with keywords passed to the
1585-
`~matplotlib.gridspec.GridSpec` constructor used to create
1586-
the grid the subplots are placed on.
1583+
Dictionary with keywords passed to the `.GridSpec` constructor used
1584+
to create the grid the subplots are placed on.
15871585
15881586
empty_sentinel : object, optional
15891587
Entry in the layout to mean "leave this space empty". Defaults

lib/matplotlib/pyplot.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -1317,14 +1317,12 @@ def subplot_mosaic(layout, *, subplot_kw=None, gridspec_kw=None,
13171317
but is very terse.
13181318
13191319
subplot_kw : dict, optional
1320-
Dictionary with keywords passed to the
1321-
:meth:`~matplotlib.figure.Figure.add_subplot` call used to create
1322-
each subplot.
1320+
Dictionary with keywords passed to the `.Figure.add_subplot` call
1321+
used to create each subplot.
13231322
13241323
gridspec_kw : dict, optional
1325-
Dictionary with keywords passed to the
1326-
`~matplotlib.gridspec.GridSpec` constructor used to create
1327-
the grid the subplots are placed on.
1324+
Dictionary with keywords passed to the `.GridSpec` constructor used
1325+
to create the grid the subplots are placed on.
13281326
13291327
empty_sentinel : object, optional
13301328
Entry in the layout to mean "leave this space empty". Defaults

0 commit comments

Comments
 (0)