Page 1 of 1

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

Posted: June 01 2020
by Subhajit Ghosh
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

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

Posted: June 02 2020
by Antony Lewis
You can access the samples.paramNames.names to get and change the list of ParamInfo instances.

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

Posted: June 11 2020
by Subhajit Ghosh
Thank you so much.

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