[GetDist] customise title_limit on each subplot

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Albin Nilsson
Posts: 17
Joined: October 05 2016
Affiliation: NCBJ, Warsaw, Poland & Rutherford-Appleton Laboratory, Harwell, UK
Contact:

[GetDist] customise title_limit on each subplot

Post by Albin Nilsson » January 13 2021

I am making some triangle plots using GetDist, and I would like to add a custom 'title' on each 1D histogram, much like the arg title_limit. Is there any good way to achieve this? I am using GetDistGUI. Thanks!

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

Re: [GetDist] customise title_limit on each subplot

Post by Antony Lewis » January 14 2021

Not in the gui (except by editing the script in the script tab)

Albin Nilsson
Posts: 17
Joined: October 05 2016
Affiliation: NCBJ, Warsaw, Poland & Rutherford-Appleton Laboratory, Harwell, UK
Contact:

Re: [GetDist] customise title_limit on each subplot

Post by Albin Nilsson » January 14 2021

Hi Anthony, thanks for the quick reply.

I don't necessary need to use the GUI, do you know a way to do it using the script?

Thanks

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

Re: [GetDist] customise title_limit on each subplot

Post by Antony Lewis » January 14 2021

access the g.subplots[x,y] axis you want and use standard matplotlib

Albin Nilsson
Posts: 17
Joined: October 05 2016
Affiliation: NCBJ, Warsaw, Poland & Rutherford-Appleton Laboratory, Harwell, UK
Contact:

Re: [GetDist] customise title_limit on each subplot

Post by Albin Nilsson » January 14 2021

Thanks again for the quick reply, I will try to do that.

As a follow-up question: can I control the x and y ticks? Depending on the parameter values, I sometimes only have one value marked on the axes.

Thanks again.

Post Reply