Getdist - python

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Cassio Bruno Pigozzo
Posts: 1
Joined: April 08 2016
Affiliation: UFBA (Brazil) & ICL

Getdist - python

Post by Cassio Bruno Pigozzo » April 08 2016

Dear Antony Lewis,

I have probably two naive questions, but I'm struggling to solve them.

- Is it possible to include a text or a title in triangular plots (.getSubplotPlotter), apart from the legends of each curve (legend_labels[]) ?

- Is it possible to edit the range the parameters are plotted? For single plot there is the 'lims[]' option, but I couldn't figure out how to control this com triangular plots.

Thanks!

best,
Cassio

Jason Dossett
Posts: 97
Joined: March 19 2010
Affiliation: The University of Texas at Dallas
Contact:

Getdist - python

Post by Jason Dossett » April 08 2016

- Is it possible to edit the range the parameters are plotted? For single plot there is the 'lims[]' option, but I couldn't figure out how to control this com triangular plots.
I have been wondering about this feature too.

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

Re: Getdist - python

Post by Antony Lewis » April 08 2016

You can use standard matplotlib after running the triangle plot, e.g. after

Code: Select all

g = plots.getSubplotPlotter()
g.triangle_plot([samples, samples2], filled=True)
you can use the g.fig figure handle (eg. to add figure title) or g.subplots[y,x] axes array to modify individual subplots as you wish.

There's no limits support in triangle_plot at the moment, you could probably add a param_limits dictionary argument as for rectangle_plot (pull requests on github welcome!).

Post Reply