CosmoCoffee Forum Index CosmoCoffee

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

GetDist: removing legend
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Graeme Addison



Joined: 17 Jul 2014
Posts: 16
Affiliation: Johns Hopkins University

PostPosted: March 23 2017  Reply with quote

When I make plots using g = getdist.plots.getSinglePlotter then g.plots2d I seem to automatically end up with a legend across the top of my plot if I have multiple roots. Is there a way to disable this? Including something along the lines of g.add_legend adds a second legend without removing the default one.

The examples on this page: http://cosmologist.info/cosmomc/readme_python.html don't seem to have this problem. I noticed they were made using planckStyle.getSinglePlotter. Unfortunately importing planckStyle throws up some latex-related error on the machine where my chains live, so I was wondering if there was another way.
Back to top
View user's profile  
Antony Lewis



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

PostPosted: March 24 2017  Reply with quote

Those examples are using plot_2D to built up the plot, not the automatic plots_2D.

You can also use
Code:
g.settings.line_labels =False
Back to top
View user's profile [ Hidden ] Visit poster's website
Graeme Addison



Joined: 17 Jul 2014
Posts: 16
Affiliation: Johns Hopkins University

PostPosted: March 24 2017  Reply with quote

Ah OK, hadn't appreciated the plot_2D vs plots_2D. Thanks.
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.