8000 DOC: Update docstring of triplot() · QuLogic/matplotlib@1efd6bf · GitHub
[go: up one dir, main page]

Skip to content

Commit 1efd6bf

Browse files
committed
DOC: Update docstring of triplot()
1 parent 8e6d6b6 commit 1efd6bf

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

lib/matplotlib/tri/_tripcolor.py

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import numpy as np
22

3-
from matplotlib import _api
3+
from matplotlib import _api, _docstring
44
from matplotlib.collections import PolyCollection, TriMesh
55
from matplotlib.tri._triangulation import Triangulation
66

77

8+
@_docstring.interpd
89
def tripcolor(ax, *args, alpha=1.0, norm=None, cmap=None, vmin=None,
910
vmax=None, shading='flat', facecolors=None, **kwargs):
1011
"""
@@ -54,8 +55,25 @@ def tripcolor(ax, *args, alpha=1.0, norm=None, cmap=None, vmin=None,
5455
values used for each triangle are from the mean c of the triangle's
5556
three points. If *shading* is 'gouraud' then color values must be
5657
defined at points.
57-
other_parameters
58-
All other parameters are the same as for `~.Axes.pcolor`.
58+
%(cmap_doc)s
59+
60+
%(norm_doc)s
61+
62+
%(vmin_vmax_doc)s
63+
64+
%(colorizer_doc)s
65+
66+
Returns
67+
-------
68+
`~matplotlib.collections.PolyCollection` or `~matplotlib.collections.TriMesh`
69+
The result depends on *shading*: For ``shading='flat'`` the result is a
70+
`.PolyCollection`, for ``shading='gouraud'`` the result is a `.TriMesh`.
71+
72+
Other Parameters
73+
----------------
74+
**kwargs : `~matplotlib.collections.Collection` properties
75+
76+
%(Collection:kwdoc)s
5977
"""
6078
_api.check_in_list(['flat', 'gouraud'], shading=shading)
6179

0 commit comments

Comments
 (0)
0