-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot.py
executable file
·343 lines (255 loc) · 20.4 KB
/
plot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
import numpy as np
from chainconsumer import ChainConsumer
def sevenchain_multi_plot(filename, out, chainnames, paranames,plotrange):
fid = np.array([-1.0,0.0])
d1read = np.genfromtxt(filename[0])
d2read = np.genfromtxt(filename[1])
d3read = np.genfromtxt(filename[2])
d4read = np.genfromtxt(filename[3])
d5read = np.genfromtxt(filename[4])
d6read = np.genfromtxt(filename[5])
d7read = np.genfromtxt(filename[6])
d1=d1read[:,(3,4)]-fid
d2=d2read[:,(3,4)]-fid
d3=d3read[:,(3,4)]-fid
d4=d4read[:,(3,4)]-fid
d5=d5read[:,(3,4)]-fid
d6=d6read[:,(3,4)]-fid
d7=d7read[:,(3,4)]-fid
c = ChainConsumer()
c.add_chain(d1,parameters=paranames, name =chainnames[0])
c.add_chain(d2,name =chainnames[1])
c.add_chain(d3,name =chainnames[2])
c.add_chain(d4,name =chainnames[3])
c.add_chain(d5,name =chainnames[4])
c.add_chain(d6,name =chainnames[5])
c.add_chain(d7,name =chainnames[6])
#c.configure(kde=[2,2],colors=['c','y'], sigmas=[1,2],shade=True,shade_alpha=0.2,shade_gradient=0.0)
c.configure(colors=['c','y','r','g','b','k','brown'], sigmas=[1],shade=True,shade_alpha=0.2,shade_gradient=0.0)
fig = c.plotter.plot(figsize=2.0,extents=plotrange,filename="plots/"+out,truth=[0.0,0.0])
def sixchain_multi_plot(filename, out, chainnames, paranames,plotrange):
fid = np.array([-1.0,0.0])
d1read = np.genfromtxt(filename[0])
d2read = np.genfromtxt(filename[1])
d3read = np.genfromtxt(filename[2])
d4read = np.genfromtxt(filename[3])
d5read = np.genfromtxt(filename[4])
d6read = np.genfromtxt(filename[5])
d1=d1read[:,(3,4)]-fid
d2=d2read[:,(3,4)]-fid
d3=d3read[:,(3,4)]-fid
d4=d4read[:,(3,4)]-fid
d5=d5read[:,(3,4)]-fid
d6=d6read[:,(3,4)]-fid
c = ChainConsumer()
c.add_chain(d1,parameters=paranames, name =chainnames[0])
c.add_chain(d2,name =chainnames[1])
c.add_chain(d3,name =chainnames[2])
c.add_chain(d4,name =chainnames[3])
c.add_chain(d5,name =chainnames[4])
c.add_chain(d6,name =chainnames[5])
#c.configure(kde=[2,2],colors=['c','y'], sigmas=[1,2],shade=True,shade_alpha=0.2,shade_gradient=0.0)
c.configure(colors=['c','y','r','g','b','k'], sigmas=[1],shade=True,shade_alpha=0.2,shade_gradient=0.0)
fig = c.plotter.plot(figsize=2.0,extents=plotrange,filename="plots/"+out,truth=[0.0,0.0])
def twochain_single_plot(filename, out, chainnames, paranames,fid):
d1 = np.genfromtxt(filename[0])
d2 = np.genfromtxt(filename[1])
c = ChainConsumer()
c.add_chain(d1[300000:,(3,4)], parameters=paranames, name =chainnames[0])
c.add_chain(d2[300000:,(3,4)], name =chainnames[1])
c.configure(kde=[2,2],shade=True,shade_alpha=0.2, bar_shade=True)
#c.configure(shade=[True,False,False],shade_alpha=[0.2,0.2,0.2],linestyles=["--", "-", "-."],linewidths=[0.5,1.,1.])
fig = c.plotter.plot(truth=fid,figsize=2.0,filename="/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/plots/"+out)
def twochain_multi_plot(filename, out, chainnames, paranames,fid, start, stop):
d1 = np.genfromtxt(filename[0])
d2 = np.genfromtxt(filename[1])
c = ChainConsumer()
c.add_chain(d1[100000:,start:stop],parameters=paranames, name =chainnames[0])
c.add_chain(d2[100000:,start:stop], name =chainnames[1])
c.configure(shade=[True,False],shade_alpha=[0.2,0.2],linestyles=["--", "-"],linewidths=[0.5,1.])
fig = c.plotter.plot(truth=fid,filename="/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/plots/"+out)
filename=["/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/like/like_LSST_3x2pt_sys_model_0","/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/like/like_LSST_3x2pt_sys_model_0_old"]
chainnames=[r"LSST new",r"LSST old"]
fid=[-1.,0.]
paranames=[r"$w_0$", r"$w_a$",]
twochain_single_plot(filename,"LSST_barytest.pdf",chainnames,paranames,fid)
filename=["/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/like/like_LSST_3x2pt_sys_model_0","/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/like/like_LSST_3x2pt_sys_model_0_old"]
chainnames=[r"LSST new",r"LSST old"]
fid=[0.3156,0.831,0.9645,-1.,0.,0.0491685,0.6727]
paranames=[r"$Omega_m$", r"$\sigma_8$",r"$n_s$", r"$w_0$", r"$w_a$",r"$\Omega_b$", r"$h_0$"]
twochain_multi_plot(filename,"LSST_barytest_cosmo.pdf",chainnames,paranames,fid,0,7)
filename=["/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/like/like_LSST_3x2pt_sys_model_0","/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/like/like_LSST_3x2pt_sys_model_0_old"]
chainnames=[r"LSST new ",r"LSST old"]
fid=[1.195074e+00, 1.298839e+00, 1.387089e+00, 1.471411e+00, 1.555770e+00, 1.643254e+00, 1.736070e+00, 1.837761e+00, 1.952242e+00, 2.085996e+00]
paranames=[r"$b_1$", r"$b_2$", r"$b_3$", r"$b_4$", r"$b_5$", r"$b_6$", r"$b_7$", r"$b_8$", r"$b_9$", r"$b_10$"]
twochain_multi_plot(filename,"LSST_barytest_gbias.pdf",chainnames,paranames,fid,7,17)
filename=["/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/like/like_LSST_3x2pt_sys_model_0","/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/like/like_LSST_3x2pt_sys_model_0_old"]
chainnames=[r"LSST new",r"LSST old"]
fid=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0849973]
paranames=[r"$sph_1$", r"$sph_2$", r"$sph_3$", r"$sph_4$", r"$sph_5$", r"$sph_6$", r"$sph_7$", r"$sph_8$", r"$sph_9$", r"$sph_10$",r"$\sigma_z source$"]
twochain_multi_plot(filename,"LSST_barytest_sourcez.pdf",chainnames,paranames,fid,17,28)
filename=["/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/like/like_LSST_3x2pt_sys_model_0","/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/like/like_LSST_3x2pt_sys_model_0_old"]
chainnames=[r"LSST new",r"LSST old"]
fid=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0849973*0.6]
paranames=[r"$lph_1$", r"$lph_2$", r"$lph_3$", r"$lph_4$", r"$lph_5$", r"$lph_6$", r"$lph_7$", r"$lph_8$", r"$lph_9$", r"$lph_10$",r"$\sigma_z lens$"]
twochain_multi_plot(filename,"LSST_barytest_lensz.pdf",chainnames,paranames,fid,28,39)
filename=["/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/like/like_LSST_3x2pt_sys_model_0","/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/like/like_LSST_3x2pt_sys_model_0_old"]
chainnames=[r"LSST new",r"LSST old"]
fid=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
paranames=[r"$m_1$", r"$m_2$", r"$m_3$", r"$m_4$", r"$m_5$", r"$m_6$", r"$m_7$", r"$m_8$", r"$m_9$", r"$m_10$"]
twochain_multi_plot(filename,"LSST_barytest_shearcalib.pdf",chainnames,paranames,fid,39,49)
filename=["/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/like/like_LSST_3x2pt_sys_model_0","/Users/timeifler/Dropbox/cosmolike_store/LSST_emu/like/like_LSST_3x2pt_sys_model_0_old"]
chainnames=[r"LSST new",r"LSST old"]
fid=[5.92,1.1,-0.47,0.0,0.0,0.0]
paranames=[r"$A_IA$",r"$beta$",r"$eta$",r"$eta_{high_z}$",r"$Q_1$",r"$Q_2$"]
twochain_multi_plot(filename,"LSST_barytest_IA_Bary.pdf",chainnames,paranames,fid,49,55)
# filename=["/Users/timeifler/Dropbox/cosmolike_store/LSSTC_emu/like/like_LSST_ocelote_3x2pt_SN10_photosys_pessi","/Users/timeifler/Dropbox/cosmolike_store/LSSTC_emu/like/like_LSST_ocelote_3x2pt_SN10_photosys_opti"]
# chainnames=[r"LSST pessi photoz",r"LSST opti photoz"]
# fid=[0.3156,0.831,0.9645,-1.,0.,0.0491685,0.6727,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0,2.1,2.2,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.05,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.05]
# twochain_multi_plot(filename,"LSST_photoz2.pdf",chainnames,paranames,fid)
# filename=["/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_CL_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_SL_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_stage3_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_SN_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_3x2_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_ALL_Aug_13"]
# chainnames=[r"Clusters Y10",r"SL Y10",r"Stage III",r"SN Y10",r"3x2pt Y10",r"LSST all+Stage III"]
# paranames=[r"$\Delta w_0$", r"$\Delta w_a$"]
# plotrange=[(-0.3,0.5),(-1.5,1.5)]
# sixchain_multi_plot(filename,"LSST_Y10_Aug13_zoomin.pdf",chainnames,paranames,plotrange)
# filename=["/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_CL_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_SL_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_stage3_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_SN_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_3x2_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_ALL_Aug_13"]
# chainnames=[r"Clusters Y1",r"SL Y1",r"Stage III",r"SN Y1",r"3x2pt Y1",r"LSST all+Stage III"]
# paranames=[r"$\Delta w_0$", r"$\Delta w_a$"]
# plotrange=[(-0.8,0.8),(-2.5,2.5)]
# sixchain_multi_plot(filename,"LSST_Y1_Aug13.pdf",chainnames,paranames,plotrange)
# filename=["/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_CL_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_SL_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_stage3_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_SN_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_3x2_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_ALL_Aug_13"]
# chainnames=[r"Clusters Y10",r"SL Y10",r"Stage III",r"SN Y10",r"3x2pt Y10",r"LSST all+Stage III"]
# paranames=[r"$\Delta w_0$", r"$\Delta w_a$"]
# plotrange=[(-0.8,0.8),(-2.5,2.5)]
# sixchain_multi_plot(filename,"LSST_Y10_Aug13.pdf",chainnames,paranames,plotrange)
# filename=["/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_CL_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_SL_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_stage3_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_SN_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_3x2_Aug_13","/Users/timeifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_ALL_Aug_13"]
# chainnames=[r"Clusters Y10",r"SL Y10",r"Stage III",r"SN Y10",r"3x2pt Y10",r"LSST all+Stage III"]
# paranames=[r"$\Delta w_0$", r"$\Delta w_a$"]
# plotrange=[(-0.3,0.5),(-1.5,1.5)]
# sixchain_multi_plot(filename,"LSST_Y1_Aug13_DESI_1-sigma.pdf",chainnames,paranames,plotrange)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/Tim_April19/lsst_srd_y10_astrosys+stat_noScatter_new_eff.txt","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_SN","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_SN+stage3"]
# chainnames=[r"SN Y10 (MCMC)", r"SN Y10 (Fisher)",r"SN Y10+stage3 (Fisher)"]
# paranames=[r"$\Delta w_0$", r"$ \Delta w_a$"]
# plotrange=[(-0.5,0.5),(-1.5,1.5)]
# fivechain_multi_plot(filename,"LSST_Y10_April22_SN_test.pdf",chainnames,paranames,plotrange)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_astrosys_shear","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_astrosys_shear_sph005_lph003","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_astrosys_shear_sph005_lph003_photomarg"]
# chainnames=[r"shear shear", r"shear shear contaminated (lph005)",r"shear shear marginalized photo-z"]
# paranames=[r"$\Delta w_0$", r"$ \Delta w_a$"]
# plotrange=[(-1.5,1.5),(-2.5,2.5)]
# fivechain_multi_plot(filename,"LSST_Y1_shear_chain.pdf",chainnames,paranames,plotrange)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_astrosys_clusterN_clusterWL","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_clusters"]
# chainnames=[r"3x2pt", r"3x2pt (Fisher)"]
# paranames=[r"$\Delta w_0$", r"$ \Delta w_a$"]
# plotrange=[(-1.5,1.5),(-2.5,2.5)]
# fivechain_multi_plot(filename,"LSST_Y1_clusters_chainvsFisher.pdf",chainnames,paranames,plotrange)
# def SNcheck_plot(filename, out, chainnames, paranames):
# fid = np.array([-1.0,0.0])
# fid2 = np.array([-0.99,0.0])
# fid3 = np.array([-1.,0.3])
# d1read = np.genfromtxt(filename[0])
# d2read = np.genfromtxt(filename[1])
# d3read = np.genfromtxt(filename[2])
# d4read = np.genfromtxt(filename[3])
# d1=d1read[:,(3,4)]-fid3
# d2=d2read[:,(2,3)]-fid
# d3=d3read[:,(3,4)]-fid
# d4=d4read[:,(2,3)]-fid2
# c = ChainConsumer()
# c.add_chain(d1,parameters=paranames, name =chainnames[0])
# c.add_chain(d2,name =chainnames[1])
# c.add_chain(d3,name =chainnames[2])
# c.add_chain(d4,name =chainnames[3])
# #c.configure(shade=True, shade_alpha=0.2, bar_shade=True)
# c.configure(shade=[False,True,False,True],shade_alpha=[0.2,0.2,0.2,0.2],linestyles=["-", "--", "-", "--"],linewidths=[1.5,1.5,1.5,1.5],colors=["r","r","b","b"])
# fig = c.plotter.plot(figsize=2.5,filename="/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/plots/"+out)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_SNY1","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/ReneeSNChains/lsst_y1_jan29_nostarts_varyM_oldomb_rand.txt","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_SNY10","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/ReneeSNChains/lsst_y10_jan29_nostarts_varyM_oldomb_rand.txt"]
# chainnames=[r"SN (Fisher) Y1", r"SN (Renee) Y1", r"SN (Fisher) Y10", r"SN (Renee) Y10"]
# paranames=[r"$w_0$", r"$w_a$"]
# SNcheck_plot(filename,"SN_Y1_Y10_check.pdf",chainnames,paranames)
# def twochain_multi_plot(filename, out, chainnames, paranames):
# fid = np.array([-1.0,0.0])
# fid = np.array([-1.0,0.0])
# d1read = np.genfromtxt(filename[0])
# d2read = np.genfromtxt(filename[1])
# d1=d1read[30000:,(3,4)]-fid
# d2=d2read[30000:,(3,4)]-fid
# # d3=d3read[:,:7]-fid2
# c = ChainConsumer()
# c.add_chain(d1,parameters=paranames, name =chainnames[0])
# c.add_chain(d2,name =chainnames[1])
# c.configure(shade=True, shade_alpha=0.2, bar_shade=True)
# #c.configure(shade=[True,False,False],shade_alpha=[0.2,0.2,0.2],linestyles=["--", "-", "-."],linewidths=[0.5,1.,1.])
# fig = c.plotter.plot(figsize=2.0,filename="/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/plots/"+out)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_DES_Y5_2pt_clusterN_clusterWL_Planck_BAO_SN","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_with_sys_2pt_cluster3"]
# chainnames=[r"Planck BOSS JLA", r"DES Y5", r"Y1 3x2pt with sys"]
# paranames=[r"$w_0$", r"$w_a$"]
# twochain_multi_plot(filename,"LSST_3x2pt_Y10_vs_Y1_with_sys.pdf",chainnames,paranames)
# def twochain_multi_plot_SN_SL(filename, out, chainnames, paranames):
# fid = np.array([0.3156,-1.0,0.0,0.6727])
# d1read = np.genfromtxt(filename[0])
# d2read = np.genfromtxt(filename[1])
# d1=d1read-fid
# d2=d2read-fid
# c = ChainConsumer()
# c.add_chain(d1[50000:,(0,1,2,3)], parameters=paranames, name =chainnames[0])
# c.add_chain(d2[50000:,(0,1,2,3)], name =chainnames[1])
# c.configure(shade=True, shade_alpha=0.2, bar_shade=True)
# #c.configure(shade=[True,False,False],shade_alpha=[0.2,0.2,0.2],linestyles=["--", "-", "-."],linewidths=[0.5,1.,1.])
# fig = c.plotter.plot(figsize=2.0,filename="/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/plots/"+out)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_SN_SL_Y10","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_SN_Y10"]
# chainnames=[r"Y10 SL", r"Y10 SN SL"]
# paranames=[r"$\Omega_m$", r"$w_0$", r"$w_a$", r"$h_0$"]
# twochain_multi_plot_SN_SL(filename,"LSST_3x2pt_Y10_vs_Y1_SN_SL.pdf",chainnames,paranames)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_with_sys_2pt","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_no_sys_2pt"]
# chainnames=[r"Y1 3x2pt with sys", r"Y1 3x2pt no sys"]
# paranames=[r"$\Omega_m$", r"$\sigma_8$", r"$n_s$", r"$w_0$", r"$w_a$", r"$\Omega_b$", r"$h_0$"]
# twochain_single_plot(filename,"LSST_Y1_3x2pt_with_sys.pdf",chainnames,paranames)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_with_sys_2pt","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_no_sys_2pt"]
# chainnames=[r"Y10 3x2pt with sys", r"Y10 3x2pt no sys"]
# paranames=[r"$\Omega_m$", r"$\sigma_8$", r"$n_s$", r"$w_0$", r"$w_a$", r"$\Omega_b$", r"$h_0$"]
# twochain_single_plot(filename,"LSST_Y10_3x2pt_with_sys.pdf",chainnames,paranames)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_with_sys_2pt","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_with_sys_2pt"]
# chainnames=[r"Y10 3x2pt with sys", r"Y1 3x2pt with sys"]
# paranames=[r"$\Omega_m$", r"$\sigma_8$", r"$n_s$", r"$w_0$", r"$w_a$", r"$\Omega_b$", r"$h_0$"]
# twochain_single_plot(filename,"LSST_Y10_Y1_3x2pt_with_sys.pdf",chainnames,paranames)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_no_sys_2pt_cluster","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_no_sys_2pt_cluster"]
# chainnames=[r"Y10 3x2pt cluster no sys", r"Y1 3x2pt cluster no sys"]
# paranames=[r"$\Omega_m$", r"$\sigma_8$", r"$n_s$", r"$w_0$", r"$w_a$", r"$\Omega_b$", r"$h_0$"]
# twochain_single_plot(filename,"LSST_Y10_vs_Y1_3x2pt_cluster_no_sys.pdf",chainnames,paranames)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_no_sys_2pt","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_no_sys_2pt_cluster"]
# chainnames=[r"Y10 3x2pt no sys", r"Y10 3x2pt clusters no sys"]
# paranames=[r"$\Omega_m$", r"$\sigma_8$", r"$n_s$", r"$w_0$", r"$w_a$", r"$\Omega_b$", r"$h_0$"]
# twochain_single_plot(filename,"LSST_Y10_3x2pt_vs_3x2pt_cluster_no_sys.pdf",chainnames,paranames)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_no_sys_2pt_cluster_SN","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_with_sys_2pt_cluster_SN"]
# chainnames=[r"Y10 3x2pt+cluster+SN no sys", r"Y10 3x2pt+cluster+SN with sys"]
# paranames=[r"$\Omega_m$", r"$\sigma_8$", r"$n_s$", r"$w_0$", r"$w_a$", r"$\Omega_b$", r"$h_0$"]
# twochain_single_plot(filename,"LSST_Y10_3x2pt_cluster_SN_with_sys_vs_no_sys.pdf",chainnames,paranames)
# def twochain_multi_plot(filename, out, chainnames, paranames):
# d1 = np.genfromtxt(filename[0])
# d2 = np.genfromtxt(filename[1])
# c = ChainConsumer()
# c.add_chain(d1[50000:,(0,1)], parameters=paranames, name =chainnames[0])
# c.add_chain(d2[50000:,(0,1)], name =chainnames[1])
# c.configure(shade=True, shade_alpha=0.2, bar_shade=True)
# #c.configure(shade=[True,False,False],shade_alpha=[0.2,0.2,0.2],linestyles=["--", "-", "-."],linewidths=[0.5,1.,1.])
# fig = c.plotter.plot(figsize=2.0,filename="/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/plots/"+out)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_with_sys_2pt","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_no_sys_2pt"]
# chainnames=[r"Y10 no sys", r"Y1 no sys"]
# paranames=[r"$\Omega_m$", r"$\sigma_8$"]
# twochain_single_plot(filename,"LSST_Y10_vs_Y1_study.pdf",chainnames,paranames)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_with_sys_2pt","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_no_sys_2pt"]
# chainnames=[r"Y1 with sys", r"Y1 no sys"]
# paranames=[r"$\Omega_m$", r"$\sigma_8$"]
# twochain_single_plot(filename,"LSST_Y1_sys_study.pdf",chainnames,paranames)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_with_sys_2pt","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_no_sys_2pt"]
# chainnames=[r"Y10 with sys", r"Y10 no sys"]
# paranames=[r"$\Omega_m$", r"$\sigma_8$"]
# twochain_single_plot(filename,"LSST_Y10_sys_study.pdf",chainnames,paranames)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_no_sys_2pt","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_no_sys_2pt"]
# chainnames=[r"Y1 no sys", r"Y10 no sys"]
# paranames=[r"$\Omega_m$", r"$\sigma_8$"]
# twochain_single_plot(filename,"LSST_Y10_vs_Y1_study.pdf",chainnames,paranames)
# filename=["/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y1_no_sys_2pt_cluster","/Users/teifler/Dropbox/cosmolike_store/LSSTawakens/like/like_LSST_SRD_Y10_no_sys_2pt_cluster"]
# chainnames=[r"Y1 2pt cluster no sys", r"Y10 2pt cluster no sys"]
# paranames=[r"$\Omega_m$", r"$\sigma_8$"]
# twochain_single_plot(filename,"LSST_Y10_vs_Y1_cluster_study.pdf",chainnames,paranames)