本文整理汇总了Python中chainconsumer.ChainConsumer.get_latex_table方法的典型用法代码示例。如果您正苦于以下问题:Python ChainConsumer.get_latex_table方法的具体用法?Python ChainConsumer.get_latex_table怎么用?Python ChainConsumer.get_latex_table使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类chainconsumer.ChainConsumer
的用法示例。
在下文中一共展示了ChainConsumer.get_latex_table方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: ChainConsumer
# 需要导入模块: from chainconsumer import ChainConsumer [as 别名]
# 或者: from chainconsumer.ChainConsumer import get_latex_table [as 别名]
hrc = hs * rs_fid / (alpha * (1 + epsilon) * (1 + epsilon)) / c
res = np.vstack((omch2, daval, z/hrc)).T
return res
p1 = [r"$\Omega_c h^2$", r"$\alpha$", r"$\epsilon$"]
p2 = [r"$\Omega_c h^2$", r"$D_A(z)/r_s$", r"$cz/H(z)/r_s $"]
if False:
consumer = ChainConsumer()
consumer.configure_contour(sigmas=[0,1.3])
consumer.add_chain(load_directory("../bWigMpBin/bWigMpBin_z0"), parameters=p1, name="$0.2<z<0.6$")
consumer.add_chain(load_directory("../bWigMpBin/bWigMpBin_z1"), parameters=p1, name="$0.4<z<0.8$")
consumer.add_chain(load_directory("../bWigMpBin/bWigMpBin_z2"), parameters=p1, name="$0.6<z<1.0$")
consumer.plot(figsize="column", filename="wigglez_multipole_alphaepsilon.pdf", truth=[0.113, 1.0, 0.0])
print(consumer.get_latex_table())
if True:
c = ChainConsumer()
c.configure_contour(sigmas=[0,1,2])
c.add_chain(convert_directory("../bWigMpBin/bWigMpBin_z0", 0.44), parameters=p2, name="$0.2<z<0.6$")
c.add_chain(convert_directory("../bWigMpBin/bWigMpBin_z1", 0.60), parameters=p2, name="$0.4<z<0.8$")
c.add_chain(convert_directory("../bWigMpBin/bWigMpBin_z2", 0.73), parameters=p2, name="$0.6<z<1.0$")
print(c.get_latex_table())
#c.plot(figsize="column", filename="wigglez_multipole_dah.pdf")
if False:
c = ChainConsumer()
c.configure_contour(sigmas=[0,1,2])
c.add_chain(convert_directory("../bWizMpMeanBin/bWizMpMeanBin_z0", 0.44), parameters=p2, name="$0.2<z<0.6$")
c.add_chain(convert_directory("../bWizMpMeanBin/bWizMpMeanBin_z1", 0.60), parameters=p2, name="$0.4<z<0.8$")
示例2: ChainConsumer
# 需要导入模块: from chainconsumer import ChainConsumer [as 别名]
# 或者: from chainconsumer.ChainConsumer import get_latex_table [as 别名]
hrc = hs / (alpha * (1 + epsilon) * (1 + epsilon)) #* rs_fid / (alpha * (1 + epsilon) * (1 + epsilon)) / c
res = np.vstack((omch2, daval, hrc)).T
return res
if False:
consumer = ChainConsumer()
consumer.configure_contour(sigmas=[0,1,2])
consumer.add_chain(load_directory("../bWigMpBin/bWigMpBin_z0"), parameters=[r"$\Omega_c h^2$", r"$\alpha$", r"$\epsilon$"], name="$0.2<z<0.6$")
consumer.add_chain(load_directory("../bWigMpBin/bWigMpBin_z1"), parameters=[r"$\Omega_c h^2$", r"$\alpha$", r"$\epsilon$"], name="$0.4<z<0.8$")
consumer.add_chain(load_directory("../bWigMpBin/bWigMpBin_z2"), parameters=[r"$\Omega_c h^2$", r"$\alpha$", r"$\epsilon$"], name="$0.6<z<1.0$")
consumer.plot(figsize="column", filename="wigglez_multipole_alphaepsilon.pdf")
#print(consumer.get_latex_table())
if True:
c = ChainConsumer()
c.add_chain(convert_directory("../bWigMpBin/bWigMpBin_z0", 0.44), parameters=[r"$\Omega_c h^2$", r"$D_A(z)$", r"$H(z)$"], name="$0.2<z<0.6$")
c.add_chain(convert_directory("../bWigMpBin/bWigMpBin_z1", 0.60), parameters=[r"$\Omega_c h^2$", r"$D_A(z)$", r"$H(z)$"], name="$0.4<z<0.8$")
c.add_chain(convert_directory("../bWigMpBin/bWigMpBin_z2", 0.73), parameters=[r"$\Omega_c h^2$", r"$D_A(z)$", r"$H(z)$"], name="$0.6<z<1.0$")
for n, chain in zip(c.names, c.chains):
print(n)
print(chain.mean(axis=0))
print(np.std(chain, axis=0))
print("----")
c.configure_contour(sigmas=[0,1,2])
c.configure_general(bins=0.7)
c.plot(figsize="column", filename="wigglez_multipole_dah.pdf")
print(c.get_latex_table())