Revision: 7502
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7502&view=rev
Author: mdboom
Date: 2009-08-18 14:08:27 +0000 (Tue, 18 Aug 2009)
Log Message:
-----------
Fix some minor typos in the paths tutorial
Modified Paths:
--------------
branches/v0_99_maint/doc/users/path_tutorial.rst
Modified: branches/v0_99_maint/doc/users/path_tutorial.rst
===================================================================
--- branches/v0_99_maint/doc/users/path_tutorial.rst 2009-08-18 14:01:41 UTC
(rev 7501)
+++ branches/v0_99_maint/doc/users/path_tutorial.rst 2009-08-18 14:08:27 UTC
(rev 7502)
@@ -6,9 +6,9 @@
The object underlying all of the :mod:`matplotlib.patch` objects is
the :class:`~matplotlib.path.Path`, which supports the standard set of
-moveto, lineto, curveto commands to draw simple and compoud outlines
+moveto, lineto, curveto commands to draw simple and compound outlines
consisting of line segments and splines. The ``Path`` is instantiated
-with a (N,2) array of (x,y) vertices, and a N length array of path
+with a (N,2) array of (x,y) vertices, and a N-length array of path
codes. For example to draw the unit rectangle from (0,0) to (1,1), we
could use this code
@@ -53,24 +53,24 @@
``STOP`` 1 (ignored) A marker for the end of the
entire path (currently not required and ignored)
``MOVETO`` 1 Pick up the pen and move to
the given vertex.
``LINETO`` 1 Draw a line from the current
position to the given vertex.
-``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.
-``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.
-``CLOSEPOLY`` 1 (ignored) Draw a line segment to the
start point of the current polyline.
+``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.
+``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.
+``CLOSEPOLY`` 1 (point itself is ignored) Draw a line segment to the
start point of the current polyline.
============== =================================
====================================================================================================================
.. path-curves:
-Bezier example
+Bézier example
==============
Some of the path components require multiple vertices to specify them:
-for example CURVE 3 is a `bezier
+for example CURVE 3 is a `bézier
<http://en.wikipedia.org/wiki/B%C3%A9zier_curve>`_ curve with one
control point and one end point, and CURVE4 has three vertices for the
two control points and the end point. The example below shows a
-CURVE4 Bezier spline -- the bezier curve will be contained in the
+CURVE4 Bézier spline -- the bézier curve will be contained in the
convex hul of the start point, the two control points, and the end
point
@@ -175,7 +175,7 @@
verts[3::5,1] = bottom
All that remains is to create the path, attach it to a
-:class:`~matplotlib.patch.PathPatch`, and ad it to our axes::
+:class:`~matplotlib.patch.PathPatch`, and add it to our axes::
barpath = path.Path(verts, codes)
patch = patches.PathPatch(barpath, facecolor='green',
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins