## Getdist - python

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

### Getdist - python

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

- 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.

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

### Re: Getdist - python

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

Code: Select all

g = plots.getSubplotPlotter&#40;&#41;
g.triangle_plot&#40;&#91;samples, samples2&#93;, filled=True&#41;
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!).