GetDist - renaming in GUI script

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
David Figuer
Posts: 3
Joined: September 16 2019
Affiliation: University of Salamanca

GetDist - renaming in GUI script

Post by David Figuer » April 08 2021

Dear all,

I am trying to analyze with GetDist some chains (not from CosmoMC), but I want to have plots with not the same names for the parameters as the ones I have in the chains files, using the GUI script. My code is something like :

Code: Select all

from getdist import plots
from getdist import paramnames

g=plots.get_subplot_plotter(chain_dir=['a', 'b', 'c'])
roots = []
roots.append('aa_')
roots.append('bb_')
roots.append('cc_')

params = ['paramA','paramB'] #these are the names in the chains files

g.triangle_plot(roots, params ,filled=True, contour_colors=['orange','gray','green'])
g.export()
This plots a triangle plot with names for the parameters paramA and paramB, the same they have in the chains files.
Is there any option one can include in the script here that allows having in the triangle plot generated not paramA and paramB names but, for example, invented_rename_A and invented_rename_B ?

Thank you and regards.

Antony Lewis
Posts: 1689
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: GetDist - renaming in GUI script

Post by Antony Lewis » April 09 2021

Just add latex labels in your input chain .paramnames file.

Or when making MCSamples instances in Python, use the labels argument.

Post Reply