CosmoCoffee Forum Index CosmoCoffee

 
 FAQFAQ   SearchSearch  MemberlistSmartFeed   MemberlistMemberlist    RegisterRegister 
   ProfileProfile   Log inLog in 
Arxiv New Filter | Bookmarks & clubs | Arxiv ref/author:

How to add colored points in Getdist figure?
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Jack Sparrow



Joined: 12 May 2016
Posts: 9
Affiliation: HK

PostPosted: May 24 2016  Reply with quote

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.
Back to top
View user's profile  
Antony Lewis



Joined: 23 Sep 2004
Posts: 1206
Affiliation: University of Sussex

PostPosted: May 25 2016  Reply with quote

You can just use standard matplotlib to add extra things after the plot is made by getdist.
Back to top
View user's profile [ Hidden ] Visit poster's website
Jack Sparrow



Joined: 12 May 2016
Posts: 9
Affiliation: HK

PostPosted: May 25 2016  Reply with quote

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!!
Back to top
View user's profile  
Antony Lewis



Joined: 23 Sep 2004
Posts: 1206
Affiliation: University of Sussex

PostPosted: May 26 2016  Reply with quote

Using subplots array. See the example at

http://getdist.readthedocs.io/en/latest/plot_gallery.html
Back to top
View user's profile [ Hidden ] Visit poster's website
Jack Sparrow



Joined: 12 May 2016
Posts: 9
Affiliation: HK

PostPosted: May 26 2016  Reply with quote

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!!!
Back to top
View user's profile  
Display posts from previous:   
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group. Sponsored by WordWeb online dictionary and dictionary software.