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

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Subhajit Ghosh
Posts: 2
Joined: June 04 2018
Affiliation: Tata Institute of Fundamental Research
Contact:

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

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.

---
Subhajit Ghosh

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

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

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

Subhajit Ghosh
Posts: 2
Joined: June 04 2018
Affiliation: Tata Institute of Fundamental Research
Contact:

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

Thank you so much.

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