How to add colored points in Getdist figure?

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Jack Sparrow
Posts: 14
Joined: May 12 2016
Affiliation: HK

How to add colored points in Getdist figure?

Post by Jack Sparrow » May 24 2016

Hi, all,

I want to add several colored points in the the figure generated by the getdist. Do you know how to do it? Thanks a lot.

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

Re: How to add colored points in Getdist figure?

Post by Antony Lewis » May 25 2016

You can just use standard matplotlib to add extra things after the plot is made by getdist.

Jack Sparrow
Posts: 14
Joined: May 12 2016
Affiliation: HK

How to add colored points in Getdist figure?

Post by Jack Sparrow » May 25 2016

Hi, Antony!

Thanks a lot for your help. Your method can work for single plot. But, the output figure generated by getdist contains a lot of subfigures. So, how should I specify which subfigure I am going to modify?

Thanks!!

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

Re: How to add colored points in Getdist figure?

Post by Antony Lewis » May 26 2016

Using subplots array. See the example at

http://getdist.readthedocs.io/en/latest ... llery.html

Jack Sparrow
Posts: 14
Joined: May 12 2016
Affiliation: HK

How to add colored points in Getdist figure?

Post by Jack Sparrow » May 26 2016

Thanks a lot for your very useful guide, Antony!!!

But I have another question now. That is the spacing or number of ticks on the axes. I tried to find the relevant information but failed. Could you tell me how to change the tick number?

Thank you!!!

Post Reply