Skip to content

Commit 9941d0d

Browse files
committed
Documentation changes for the addition of plot_trisurf()
1 parent 59deb80 commit 9941d0d

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

doc/mpl_toolkits/mplot3d/tutorial.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ Surface plots
6464
.. plot:: mpl_examples/mplot3d/surface3d_demo2.py
6565
.. plot:: mpl_examples/mplot3d/surface3d_demo3.py
6666

67+
.. _trisurface:
68+
69+
Tri-Surface plots
70+
=================
71+
.. automethod:: Axes3D.plot_trisurface
72+
73+
.. plot:: mpl_examples/mplot3d/trisurf3d_demo.py
74+
75+
6776
.. _contour3d:
6877

6978
Contour plots

doc/users/whats_new.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ This page just covers the highlights -- for the full story, see the
1212
versions 2.4 to 2.7. matplotlib 1.2 and later require
1313
versions 2.6, 2.7, and 3.1 and higher.
1414

15+
.. _whats-new-1-2:
16+
17+
new in matplotlib-1.2
18+
=====================
19+
20+
Tri-Surface Plots
21+
-----------------
22+
23+
Damon McDougall added a new plotting method for the
24+
:mod:`~mpl_toolkits.mplot3d` toolkit called
25+
:meth:`~mpl_toolkits.mplot3d.axes3d.Axes3D.plot_trisurf`.
26+
27+
.. plot:: mpl_examples/mplot3d/trisurf3d_demo.py
28+
1529
.. _whats-new-1-1:
1630

1731
new in matplotlib-1.1

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ def plot_wireframe(self, X, Y, Z, *args, **kwargs):
15721572
return linec
15731573

15741574
def plot_trisurf(self, X, Y, Z, *args, **kwargs):
1575-
'''
1575+
"""
15761576
============= ================================================
15771577
Argument Description
15781578
============= ================================================
@@ -1587,7 +1587,10 @@ def plot_trisurf(self, X, Y, Z, *args, **kwargs):
15871587
15881588
Other arguments are passed on to
15891589
:class:`~mpl_toolkits.mplot3d.art3d.Poly3DCollection`
1590-
'''
1590+
1591+
.. versionadded:: 1.2.0
1592+
This plotting function was added for the v1.2.0 release.
1593+
"""
15911594

15921595
had_data = self.has_data()
15931596

0 commit comments

Comments
 (0)