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

Skip to content

Commit e40a3bb

Browse files
committed
updates to nxutils docstrings
svn path=/trunk/matplotlib/; revision=6240
1 parent dec060f commit e40a3bb

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/nxutils.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,17 @@ static PyMethodDef module_methods[] = {
221221
{"pnpoly", pnpoly, METH_VARARGS,
222222
"inside = pnpoly(x, y, xyverts)\n\n"
223223
"Return 1 if x,y is inside the polygon, 0 otherwise.\n\n"
224-
"xyverts is a sequence of x,y vertices.\n\n"
224+
"*xyverts*\n a sequence of x,y vertices.\n\n"
225225
"A point on the boundary may be treated as inside or outside.\n"
226-
"See http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html"},
226+
"See `pnpoly <http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html>`_"},
227227
{"points_inside_poly", points_inside_poly, METH_VARARGS,
228228
"mask = points_inside_poly(xypoints, xyverts)\n\n"
229229
"Return a boolean ndarray, True for points inside the polygon.\n\n"
230-
"xypoints is a sequence of N x,y pairs.\n"
231-
"xyverts is a sequence of x,y vertices of the polygon.\n"
232-
"mask is an ndarray of length N.\n\n"
230+
"*xypoints*\n a sequence of N x,y pairs.\n"
231+
"*xyverts*\n sequence of x,y vertices of the polygon.\n"
232+
"*mask* an ndarray of length N.\n\n"
233233
"A point on the boundary may be treated as inside or outside.\n"
234-
"See http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html"},
234+
"See `pnpoly <http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html>`_\n"},
235235
{NULL} /* Sentinel */
236236
};
237237

@@ -241,7 +241,7 @@ PyMODINIT_FUNC
241241
PyObject* m;
242242

243243
m = Py_InitModule3("nxutils", module_methods,
244-
"general purpose utilities (numpy).");
244+
"general purpose numerical utilities, eg for computational geometry, that are not available in `numpy <http://numpy.scipy.org>`_");
245245

246246
if (m == NULL)
247247
return;

0 commit comments

Comments
 (0)