numpy interface changed to be strict about 2D array shape in histogram
This commit is contained in:
parent
1ef82e351b
commit
25a80723c0
|
@ -120,7 +120,7 @@ for name in filenames:
|
||||||
delta = minmax[:,1]-minmax[:,0]
|
delta = minmax[:,1]-minmax[:,0]
|
||||||
(grid,xedges,yedges) = np.histogram2d(table.data[:,0],table.data[:,1],
|
(grid,xedges,yedges) = np.histogram2d(table.data[:,0],table.data[:,1],
|
||||||
bins=options.bins,
|
bins=options.bins,
|
||||||
range=minmax[0:2,0:2],
|
range=minmax[:2],
|
||||||
weights=None if options.weight is None else table.data[:,2])
|
weights=None if options.weight is None else table.data[:,2])
|
||||||
|
|
||||||
if options.normCol:
|
if options.normCol:
|
||||||
|
|
Loading…
Reference in New Issue