Page 1 of 1

Getdist - python

Posted: April 08 2016
by Cassio Bruno Pigozzo
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

Getdist - python

Posted: April 08 2016
by Jason Dossett
- 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.

Re: Getdist - python

Posted: April 08 2016
by Antony Lewis
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!).