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

Skip to content

Commit deac85f

Browse files
committed
Small changes undtructured
1 parent a953309 commit deac85f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

galleries/users_explain/plotting/unstructuredgrid.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
:math:`x` and :math:`y` are one-dimensional arrays of the same length, and
1010
hence :math:`z` is also one-dimensional. Sometimes it is useful to grid that
1111
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
1313
be plotted directly in Matplotlib.
1414
15-
Matplotlib does this via a suite of triangulation routines in the
15+
Matplotlib accomplishes this via a suite of triangulation routines in the
1616
:mod:`matplotlib.tri` module. The most basic triangulation routine is
1717
`~matplotlib.tri.Triangulation`, which is a simple wrapper around the popular
1818
`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
2727
# -------
2828
#
2929
# 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.
3232

3333
import matplotlib.pyplot as plt
3434
import numpy as np
@@ -86,8 +86,10 @@ class is used to create a triangulation of a set of points, and this
8686
# tricontour and tricontourf
8787
# --------------------------
8888
#
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.
9193

9294
fig, ax = plt.subplots()
9395
ax.plot(x, y, 'm.')

0 commit comments

Comments
 (0)