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

Skip to content

Commit 3bd6415

Browse files
committed
Fix some minor typos in the paths tutorial
svn path=/branches/v0_99_maint/; revision=7502
1 parent 87ce331 commit 3bd6415

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

doc/users/path_tutorial.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Path Tutorial
66

77
The object underlying all of the :mod:`matplotlib.patch` objects is
88
the :class:`~matplotlib.path.Path`, which supports the standard set of
9-
moveto, lineto, curveto commands to draw simple and compoud outlines
9+
moveto, lineto, curveto commands to draw simple and compound outlines
1010
consisting of line segments and splines. The ``Path`` is instantiated
11-
with a (N,2) array of (x,y) vertices, and a N length array of path
11+
with a (N,2) array of (x,y) vertices, and a N-length array of path
1212
codes. For example to draw the unit rectangle from (0,0) to (1,1), we
1313
could use this code
1414

@@ -53,24 +53,24 @@ Code Vertices Description
5353
``STOP`` 1 (ignored) A marker for the end of the entire path (currently not required and ignored)
5454
``MOVETO`` 1 Pick up the pen and move to the given vertex.
5555
``LINETO`` 1 Draw a line from the current position to the given vertex.
56-
``CURVE3`` 2 (1 control point, 1 endpoint) Draw a quadratic Bezier curve from the current position, with the given control point, to the given end point.
57-
``CURVE4`` 3 (2 control points, 1 endpoint) Draw a cubic Bezier curve from the current position, with the given control points, to the given end point.
58-
``CLOSEPOLY`` 1 (ignored) Draw a line segment to the start point of the current polyline.
56+
``CURVE3`` 2 (1 control point, 1 endpoint) Draw a quadratic Bézier curve from the current position, with the given control point, to the given end point.
57+
``CURVE4`` 3 (2 control points, 1 endpoint) Draw a cubic Bézier curve from the current position, with the given control points, to the given end point.
58+
``CLOSEPOLY`` 1 (point itself is ignored) Draw a line segment to the start point of the current polyline.
5959
============== ================================= ====================================================================================================================
6060

6161

6262
.. path-curves:
6363
6464
65-
Bezier example
65+
Bézier example
6666
==============
6767

6868
Some of the path components require multiple vertices to specify them:
69-
for example CURVE 3 is a `bezier
69+
for example CURVE 3 is a `bézier
7070
<http://en.wikipedia.org/wiki/B%C3%A9zier_curve>`_ curve with one
7171
control point and one end point, and CURVE4 has three vertices for the
7272
two control points and the end point. The example below shows a
73-
CURVE4 Bezier spline -- the bezier curve will be contained in the
73+
CURVE4 Bézier spline -- the bézier curve will be contained in the
7474
convex hul of the start point, the two control points, and the end
7575
point
7676

@@ -175,7 +175,7 @@ it to keep the codes aligned with the vertices::
175175
verts[3::5,1] = bottom
176176

177177
All that remains is to create the path, attach it to a
178-
:class:`~matplotlib.patch.PathPatch`, and ad it to our axes::
178+
:class:`~matplotlib.patch.PathPatch`, and add it to our axes::
179179

180180
barpath = path.Path(verts, codes)
181181
patch = patches.PathPatch(barpath, facecolor='green',

0 commit comments

Comments
 (0)