mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +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)),
|
||||
))
|
||||
|
||||
print "Read %d voids" % len(catalog.voids)
|
||||
catalog.numVoids = len(catalog.voids)
|
||||
print "Read %d voids" % catalog.numVoids
|
||||
|
||||
print "Loading barycenters..."
|
||||
iLine = 0
|
||||
|
|
|
@ -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,))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue