Index: /branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py
===================================================================
--- /branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py	(revision 20550)
+++ /branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py	(revision 20551)
@@ -391,5 +391,5 @@
     """Return a record array representing a table row from a hash;
     keys are column names, values are data"""
-    newrow =  numarray.records.array([tuple(hash.values())])
+    newrow =  numpy.rec.array([tuple(hash.values())])
     newrow.dtype.names=hash.keys()
     # Not :
@@ -762,6 +762,7 @@
     if isNone(nbins):
         return
-    histo,leftbinedges = histogram(vec,nbins,[minbin,maxbin])
-    bincenters = leftbinedges + 0.5*(leftbinedges[1]-leftbinedges[0])
+    histo,binedges = histogram(vec,nbins,[minbin,maxbin],new=True)
+    bincenters =  binedges + 0.5*(binedges[1]-binedges[0])
+    bincenters = bincenters[0:-1]
 
     sm.expand(expand)
