Skip to content

Commit 2135d78

Browse files
committed
Merged revisions 8559 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v1_0_maint ........ r8559 | ianthomas23 | 2010-07-16 14:46:14 +0100 (Fri, 16 Jul 2010) | 2 lines Added tri* functions to pyplot docs. ........ svn path=/trunk/matplotlib/; revision=8560
1 parent bce5b8d commit 2135d78

File tree

4 files changed

+65
-2
lines changed

4 files changed

+65
-2
lines changed

doc/_templates/index.html

+44-1
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,6 @@ <h3>plotting commands</h3> <br/>
994994
</td>
995995

996996
</tr>
997-
998997
<tr>
999998
<th align="left">
1000999
<a href="api/pyplot_api.html#matplotlib.pyplot.title">title</a>
@@ -1005,6 +1004,50 @@ <h3>plotting commands</h3> <br/>
10051004
add a title to the current axes
10061005
</td>
10071006

1007+
</tr>
1008+
<tr>
1009+
<th align="left">
1010+
<a href="api/pyplot_api.html#matplotlib.pyplot.tricontour">tricontour</a>
1011+
1012+
</th>
1013+
1014+
<td align="left">
1015+
make a contour plot on a triangular grid
1016+
</td>
1017+
1018+
</tr>
1019+
<tr>
1020+
<th align="left">
1021+
<a href="api/pyplot_api.html#matplotlib.pyplot.tricontourf">tricontourf</a>
1022+
1023+
</th>
1024+
1025+
<td align="left">
1026+
make a filled contour plot on a triangular grid
1027+
</td>
1028+
1029+
</tr>
1030+
<tr>
1031+
<th align="left">
1032+
<a href="api/pyplot_api.html#matplotlib.pyplot.tripcolor">tripcolor</a>
1033+
1034+
</th>
1035+
1036+
<td align="left">
1037+
make a pseudocolor plot on a triangular grid
1038+
</td>
1039+
1040+
</tr>
1041+
<tr>
1042+
<th align="left">
1043+
<a href="api/pyplot_api.html#matplotlib.pyplot.triplot">triplot</a>
1044+
1045+
</th>
1046+
1047+
<td align="left">
1048+
plot a triangular grid
1049+
</td>
1050+
10081051
</tr>
10091052
<tr>
10101053
<th align="left">

doc/api/api_changes.rst

+15
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,21 @@ Changes beyond 0.99.x
117117

118118
draw_image(self, gc, x, y, im)
119119

120+
* There are four new Axes methods with corresponding pyplot
121+
functions that deal with unstructured triangular grids:
122+
123+
+ :meth:`matplotlib.axes.Axes.tricontour` draws contour lines
124+
on a triangular grid.
125+
126+
+ :meth:`matplotlib.axes.Axes.tricontourf` draws filled contours
127+
on a triangular grid.
128+
129+
+ :meth:`matplotlib.axes.Axes.tripcolor` draws a pseudocolor
130+
plot on a triangular grid.
131+
132+
+ :meth:`matplotlib.axes.Axes.triplot` draws a triangular grid
133+
as lines and/or markers.
134+
120135
Changes in 0.99
121136
======================
122137

lib/matplotlib/pylab.py

+4
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@
9292
tick_params - control the appearance of ticks and tick labels
9393
ticklabel_format - control the format of tick labels
9494
title - add a title to the current axes
95+
tricontour - make a contour plot on a triangular grid
96+
tricontourf - make a filled contour plot on a triangular grid
97+
tripcolor - make a pseudocolor plot on a triangular grid
98+
triplot - plot a triangular grid
9599
xcorr - plot the autocorrelation function of x and y
96100
xlim - set/get the xlimits
97101
ylim - set/get the ylimits

lib/matplotlib/tri/tricontour.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ def _contour_args(self, args, kwargs):
9393
tricontour_doc = """
9494
:func:`~matplotlib.pyplot.tricontour` and
9595
:func:`~matplotlib.pyplot.tricontourf` draw contour lines and
96-
filled contours, respectively. Except as noted, function
96+
filled contours, respectively, on an unstructured triangular
97+
grid. Except as noted, function
9798
signatures and return values are the same for both versions.
9899
99100
The triangulation can be specified in one of two ways; either::

0 commit comments

Comments
 (0)