9
9
:math:`x` and :math:`y` are one-dimensional arrays of the same length, and
10
10
hence :math:`z` is also one-dimensional. Sometimes it is useful to grid that
11
11
data via appropriate interpolation schemes (see `scipy.interpolate.griddata`
12
- for some in python). However, if the data is spaced appropriately it can sometimes
12
+ for some in python). However, if the data is spaced appropriately, it can sometimes
13
13
be plotted directly in Matplotlib.
14
14
15
- Matplotlib does this via a suite of triangulation routines in the
15
+ Matplotlib accomplishes this via a suite of triangulation routines in the
16
16
:mod:`matplotlib.tri` module. The most basic triangulation routine is
17
17
`~matplotlib.tri.Triangulation`, which is a simple wrapper around the popular
18
18
`Qhull <http://www.qhull.org/>`_ library. The `~matplotlib.tri.Triangulation`
@@ -27,8 +27,8 @@ class is used to create a triangulation of a set of points, and this
27
27
# -------
28
28
#
29
29
# The most basic plot is the `~.axes.Axes.triplot` method, which plots the
30
- # edges of the triangles. Here we create a simple triangulation on a set of
31
- # points, and plot the edges of the triangles that are created.
30
+ # edges of triangles in a triangulation . Here we create a simple triangulation
31
+ # on a set of points, and plot the edges of the triangles that are created.
32
32
33
33
import matplotlib .pyplot as plt
34
34
import numpy as np
@@ -86,8 +86,10 @@ class is used to create a triangulation of a set of points, and this
86
86
# tricontour and tricontourf
87
87
# --------------------------
88
88
#
89
- # The `~.axes.Axes.tricontour` and `~.axes.Axes.tricontourf` methods can also be used to
90
- # plot contours on a triangulation.
89
+ # The `~.axes.Axes.tricontour` and `~.axes.Axes.tricontourf` methods can be
90
+ # used to plot contours of unstractured data, where the underlying
91
+ # triangulation is used to interpolate the contour locations. Here we plot
92
+ # contours of the same data as above.
91
93
92
94
fig , ax = plt .subplots ()
93
95
ax .plot (x , y , 'm.' )
0 commit comments