Getdist: Is there a way (function) to rename latex label of a parameter?

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Subhajit Ghosh
Posts: 5
Joined: June 04 2018
Affiliation: University of Notre Dame
Contact:

Getdist: Is there a way (function) to rename latex label of a parameter?

Post by Subhajit Ghosh » June 01 2020

Hello,

I know that the latex labels for the parameters are defined in the .paramnames file.

Is there a way (specifically a function) to rename those parameters (some specific ones) after loading them using getdist.loadMCSamples()?

One way is that I just change the latex labels in .paramnames file. Is there any other way without modifying .paramnames file.

Thanks in advance.

---
Subhajit Ghosh

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

Re: Getdist: Is there a way (function) to rename latex label of a parameter?

Post by Antony Lewis » June 02 2020

You can access the samples.paramNames.names to get and change the list of ParamInfo instances.

Subhajit Ghosh
Posts: 5
Joined: June 04 2018
Affiliation: University of Notre Dame
Contact:

Re: Getdist: Is there a way (function) to rename latex label of a parameter?

Post by Subhajit Ghosh » June 11 2020

Thank you so much.

Achieved via: samples.paramNames.parWithName('paramname').label = 'newparamlabel'

Post Reply