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

Skip to content

Commit f320354

Browse files
committed
fixed a c decl bug in nxutil
svn path=/trunk/matplotlib/; revision=2760
1 parent c0853c8 commit f320354

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/matplotlib/ticker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ def scale_range(vmin, vmax, n = 1, threshold=100):
780780
maxabsv = max(abs(vmin), abs(vmax))
781781
if maxabsv == 0 or dv/maxabsv < 1e-12:
782782
return 1.0, 0.0
783-
print vmin, vmax
783+
#print vmin, vmax
784784
meanv = 0.5*(vmax+vmin)
785785
if abs(meanv)/dv < threshold:
786786
offset = 0

src/nxutils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ points_inside_poly(PyObject *self, PyObject *args)
105105
int npol, npoints, i;
106106
double *xv, *yv, x, y;
107107
int b;
108-
PyObject *xypointsarg, *vertsarg;
108+
PyObject *xypointsarg, *vertsarg, *ret;
109109
PyArrayObject *xypoints, *verts;
110110
PyArrayObject *mask;
111111
int dimensions[1];
@@ -210,7 +210,7 @@ points_inside_poly(PyObject *self, PyObject *args)
210210

211211
PyMem_Free(xv);
212212
PyMem_Free(yv);
213-
PyObject* ret = Py_BuildValue("O", mask);
213+
ret = Py_BuildValue("O", mask);
214214
Py_XDECREF(mask);
215215
return ret;
216216

0 commit comments

Comments
 (0)