re-added some dropped fixes; ixed ellipticity distribution plotting

This commit is contained in:
P.M. Sutter 2014-05-30 09:36:01 -05:00
parent ae22f0c036
commit fe885ea008
2 changed files with 4 additions and 2 deletions

View file

@ -344,7 +344,8 @@ def loadVoidCatalog(sampleDir, dataPortion="central", loadParticles=True,
eigenVecs = np.zeros((3,3)),
))
print "Read %d voids" % len(catalog.voids)
catalog.numVoids = len(catalog.voids)
print "Read %d voids" % catalog.numVoids
print "Loading barycenters..."
iLine = 0

View file

@ -167,8 +167,9 @@ def plotEllipDist(catalogList,
dataWeights = np.ones_like(data)/len(data)
dataHist, dataBins = np.histogram(data, bins=10, weights=dataWeights,
range=(0.0,0.35))
binCenters = 0.5*(dataBins[1:] + dataBins[:-1])
plt.plot(dataBins, dataHist, label=sample.fullName,
plt.plot(binCenters, dataHist, label=sample.fullName,
color=colorList[iSample])
ellipDistList.append((dataBins, dataHist,))