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
Getdist: Is there a way (function) to rename latex label of a parameter?
-
- Posts: 6
- Joined: June 04 2018
- Affiliation: The University of Texas at Austin
- Contact:
-
- Posts: 1944
- 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.
-
- Posts: 6
- Joined: June 04 2018
- Affiliation: The University of Texas at Austin
- 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'
Achieved via: samples.paramNames.parWithName('paramname').label = 'newparamlabel'