mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
fixed up automatic plotting scripts
This commit is contained in:
parent
5c4be39a99
commit
2c5f6fcafb
1 changed files with 19 additions and 1 deletions
|
@ -33,6 +33,9 @@ def plotRedshiftDistribution(workDir=None, sampleList=None, figDir=None,
|
|||
plotNameBase="zdist",
|
||||
showPlot=False, dataPortion=None, setName=None):
|
||||
|
||||
plt.ioff()
|
||||
maptplotlib.pyplot.switch_backed('Agg')
|
||||
|
||||
plt.clf()
|
||||
plt.xlabel("Redshift")
|
||||
plt.ylabel("Number of Voids")
|
||||
|
@ -95,6 +98,10 @@ def plotSizeDistribution(workDir=None, sampleList=None, figDir=None,
|
|||
plotNameBase="sizedist",
|
||||
showPlot=False, dataPortion=None, setName=None):
|
||||
|
||||
|
||||
plt.ioff()
|
||||
maptplotlib.pyplot.switch_backed('Agg')
|
||||
|
||||
plt.clf()
|
||||
plt.xlabel("Void Radius (Mpc/h)")
|
||||
plt.ylabel("Number of Voids")
|
||||
|
@ -157,6 +164,10 @@ def plot1dProfiles(workDir=None, sampleList=None, figDir=None,
|
|||
plotNameBase="1dprofile",
|
||||
showPlot=False, dataPortion=None, setName=None):
|
||||
|
||||
|
||||
plt.ioff()
|
||||
maptplotlib.pyplot.switch_backed('Agg')
|
||||
|
||||
plt.clf()
|
||||
plt.xlabel(r"$R/R_{v,\mathrm{max}}$")
|
||||
plt.ylabel(r"$n / \bar n$")
|
||||
|
@ -208,6 +219,9 @@ def plotMarg1d(workDir=None, sampleList=None, figDir=None,
|
|||
plotNameBase="marg1d",
|
||||
showPlot=False, dataPortion=None, setName=None):
|
||||
|
||||
plt.ioff()
|
||||
maptplotlib.pyplot.switch_backed('Agg')
|
||||
|
||||
plotNames = ("Om", "w0", "wa")
|
||||
plotTitles = ("$\Omega_M$", "$w_0$", "$w_a$")
|
||||
files = ("Om", "w0", "wa")
|
||||
|
@ -241,6 +255,9 @@ def plotNumberDistribution(workDir=None, sampleList=None, figDir=None,
|
|||
plotNameBase="numberdist",
|
||||
showPlot=False, dataPortion=None, setName=None):
|
||||
|
||||
plt.ioff()
|
||||
maptplotlib.pyplot.switch_backed('Agg')
|
||||
|
||||
plt.clf()
|
||||
plt.xlabel("Void Radius (Mpc/h)")
|
||||
plt.ylabel(r"N > R [$h^3$ Mpc$^{-3}$]")
|
||||
|
@ -300,7 +317,8 @@ def plotVoidDistribution(workDir=None, sampleList=None, figDir=None,
|
|||
plotNameBase="dv",
|
||||
showPlot=False, dataPortion=None, setName=None):
|
||||
|
||||
#plt.ioff()
|
||||
plt.ioff()
|
||||
maptplotlib.pyplot.switch_backed('Agg')
|
||||
Nmesh = 256
|
||||
|
||||
for (iSample,sample) in enumerate(sampleList):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue