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

Skip to content

Commit eb687d8

Browse files
committed
Add the triangulation specification to dostring
1 parent 17159dc commit eb687d8

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,9 +1576,37 @@ def plot_trisurf(self, *args, **kwargs):
15761576
*shade* Whether to shade the facecolors
15771577
============= ================================================
15781578
1579+
The (optional) triangulation can be specified in one of two ways;
1580+
either::
1581+
1582+
plot_trisurf(triangulation, ...)
1583+
1584+
where triangulation is a :class:`~matplotlib.tri.Triangulation`
1585+
object, or::
1586+
1587+
plot_trisurf(X, Y, ...)
1588+
plot_trisurf(X, Y, triangles, ...)
1589+
plot_trisurf(X, Y, triangles=triangles, ...)
1590+
1591+
in which case a Triangulation object will be created. See
1592+
:class:`~matplotlib.tri.Triangulation` for a explanation of
1593+
these possibilities.
1594+
1595+
The remaining arguments are::
1596+
1597+
plot_trisurf(..., Z)
1598+
1599+
where *Z* is the array of values to contour, one per point
1600+
in the triangulation.
1601+
15791602
Other arguments are passed on to
15801603
:class:`~mpl_toolkits.mplot3d.art3d.Poly3DCollection`
15811604
1605+
**Examples:**
1606+
1607+
.. plot:: mpl_examples/mplot3d/trisurf3d_demo.py
1608+
.. plot:: mpl_examples/mplot3d/trisurf3d_demo2.py
1609+
15821610
.. versionadded:: 1.2.0
15831611
This plotting function was added for the v1.2.0 release.
15841612
"""

0 commit comments

Comments
 (0)