mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
re-added some dropped fixes; ixed ellipticity distribution plotting
This commit is contained in:
parent
ae22f0c036
commit
fe885ea008
2 changed files with 4 additions and 2 deletions
|
@ -344,7 +344,8 @@ def loadVoidCatalog(sampleDir, dataPortion="central", loadParticles=True,
|
||||||
eigenVecs = np.zeros((3,3)),
|
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..."
|
print "Loading barycenters..."
|
||||||
iLine = 0
|
iLine = 0
|
||||||
|
|
|
@ -167,8 +167,9 @@ def plotEllipDist(catalogList,
|
||||||
dataWeights = np.ones_like(data)/len(data)
|
dataWeights = np.ones_like(data)/len(data)
|
||||||
dataHist, dataBins = np.histogram(data, bins=10, weights=dataWeights,
|
dataHist, dataBins = np.histogram(data, bins=10, weights=dataWeights,
|
||||||
range=(0.0,0.35))
|
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])
|
color=colorList[iSample])
|
||||||
|
|
||||||
ellipDistList.append((dataBins, dataHist,))
|
ellipDistList.append((dataBins, dataHist,))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue