Skip to content

Commit

Permalink
fixed a c decl bug in nxutil
Browse files Browse the repository at this point in the history
svn path=/trunk/matplotlib/; revision=2760
  • Loading branch information
jdh2358 committed Sep 5, 2006
1 parent c0853c8 commit f320354
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/matplotlib/ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ def scale_range(vmin, vmax, n = 1, threshold=100):
maxabsv = max(abs(vmin), abs(vmax))
if maxabsv == 0 or dv/maxabsv < 1e-12:
return 1.0, 0.0
print vmin, vmax
#print vmin, vmax
meanv = 0.5*(vmax+vmin)
if abs(meanv)/dv < threshold:
offset = 0
Expand Down
4 changes: 2 additions & 2 deletions src/nxutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ points_inside_poly(PyObject *self, PyObject *args)
int npol, npoints, i;
double *xv, *yv, x, y;
int b;
PyObject *xypointsarg, *vertsarg;
PyObject *xypointsarg, *vertsarg, *ret;
PyArrayObject *xypoints, *verts;
PyArrayObject *mask;
int dimensions[1];
Expand Down Expand Up @@ -210,7 +210,7 @@ points_inside_poly(PyObject *self, PyObject *args)

PyMem_Free(xv);
PyMem_Free(yv);
PyObject* ret = Py_BuildValue("O", mask);
ret = Py_BuildValue("O", mask);
Py_XDECREF(mask);
return ret;

Expand Down

0 comments on commit f320354

Please sign in to comment.