Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions nested_res_V4p3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1471,19 +1471,28 @@ def histo2D_interp(self,par_name1,par_name2,path=currentpath):

#---------------------------------------------------------------------------------------------------------------------

def triangle_plot(self,path=currentpath):
'''
def triangle_plot(
self, path: str = currentpath, params: list = None, savefile: bool = False
) -> None:
"""
Triangle plot of all probability distributions using GetDist package
'''


Args:
path (str, optional): Path to the output files. Defaults to the current path.
params (list, optional): List of str with the name of the parameters. Defaults to None for all parameters.
savefile (bool, optional): Option for saving the triangle plot. Saved under currentpath/triangle_plot.pdf. Defaults to False.
"""

from getdist import plots

self.path = path


g = plots.get_subplot_plotter()
g.triangle_plot(self.path+'/nf_output_points',filled=True)
g.triangle_plot(self.path + "/nf_output_points", params=params, filled=True)
if savefile == True:
plt.savefig(self.path + "/triangle_plot.pdf")
plt.tight_layout()

plt.show()


Expand Down