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

Skip to content

Commit 59b3751

Browse files
committed
docstring fixes.
svn path=/trunk/matplotlib/; revision=5703
1 parent 67b683c commit 59b3751

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

lib/matplotlib/path.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Path(object):
2424
2525
These two arrays always have the same length in the first
2626
dimension. For example, to represent a cubic curve, you must
27-
provide three vertices as well as three codes "CURVE3".
27+
provide three vertices as well as three codes ``CURVE3``.
2828
2929
The code types are:
3030
@@ -53,8 +53,8 @@ class Path(object):
5353
Users of Path objects should not access the vertices and codes
5454
arrays directly. Instead, they should use :meth:`iter_segments`
5555
to get the vertex/code pairs. This is important, since many
56-
:class:`Path`s, as an optimization, do not store a codes array at
57-
all, but have a default one provided for them by
56+
:class:`Path` objects, as an optimization, do not store a *codes*
57+
at all, but have a default one provided for them by
5858
:meth:`iter_segments`.
5959
"""
6060

@@ -168,16 +168,16 @@ def iter_segments(self):
168168
if not len(vertices):
169169
return
170170

171-
codes = self.codes
171+
codes = self.codes
172172
len_vertices = len(vertices)
173-
isnan = np.isnan
174-
any = np.any
173+
isnan = np.isnan
174+
any = np.any
175175

176176
NUM_VERTICES = self.NUM_VERTICES
177-
MOVETO = self.MOVETO
178-
LINETO = self.LINETO
179-
CLOSEPOLY = self.CLOSEPOLY
180-
STOP = self.STOP
177+
MOVETO = self.MOVETO
178+
LINETO = self.LINETO
179+
CLOSEPOLY = self.CLOSEPOLY
180+
STOP = self.STOP
181181

182182
if codes is None:
183183
next_code = MOVETO

0 commit comments

Comments
 (0)