Skip to content

Commit e85d8d4

Browse files
committed
fix remainging sphinx errs/earnings for sankey
1 parent a9e32ab commit e85d8d4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/matplotlib/sankey.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def add(self, patchlabel='', flows=np.array([1.0,-1.0]), orientations=[0,0],
250250
=============== ==========================================================
251251
*patchlabel* label to be placed at the center of the diagram
252252
Note: *label* (not *patchlabel*) will be passed to
253-
the patch through `**kwargs` and can be used to create
253+
the patch through ``**kwargs`` and can be used to create
254254
an entry in the legend.
255255
*flows* array of flow values
256256
By convention, inputs are positive and outputs are
@@ -298,8 +298,9 @@ def add(self, patchlabel='', flows=np.array([1.0,-1.0]), orientations=[0,0],
298298
299299
%(Patch)s
300300
301-
As examples, `fill=False` and `label='A legend entry'`. By default,
302-
*facecolor*='#bfd1d4'` (light blue) and *linewidth*=0.5.
301+
As examples, ``fill=False`` and ``label='A legend entry'``.
302+
By default, ``facecolor='#bfd1d4'`` (light blue) and
303+
``linewidth=0.5``.
303304
304305
The indexing parameters (*prior* and *connect*) are zero-based.
305306
@@ -746,7 +747,7 @@ def __init__(self, ax=None, scale=1.0, unit='', format='%G', gap=0.25,
746747
that there is consistent alignment and formatting.
747748
748749
If :class:`Sankey` is instantiated with any keyword arguments other than
749-
those explicitly listed above (`**kwargs`), they will be passed to
750+
those explicitly listed above (``**kwargs``), they will be passed to
750751
:meth:`add`, which will create the first subdiagram.
751752
752753
In order to draw a complex Sankey diagram, create an instance of
@@ -774,6 +775,7 @@ def __init__(self, ax=None, scale=1.0, unit='', format='%G', gap=0.25,
774775
:meth:`add`
775776
:meth:`finish`
776777
778+
777779
**Examples:**
778780
779781
.. plot:: mpl_examples/api/sankey_demo_basics.py

0 commit comments

Comments
 (0)