def __init__(self, **kw): BubblePlot.__init__(self, **kw) self.title = 'Context' self.xlabel = 'Planet Mass\n(Earth masses)' self.ylabel = 'Planet Radius (Earth radii)' self.ylim=ylim self.xlim=[0.7, 30] self.xscale='log' self.yscale='linear' self.set('goodmass') #self.pop.find('GJ1214b') self.normalization = self.unnormalizedsize[self.pop.standard['name'] == 'GJ 1214b']
def __init__(self, lightyears=False, **kw): BubblePlot.__init__(self, **kw) self.title = 'Context' self.lightyears = lightyears if lightyears: self.xlabel = "Distance from Earth (lightyears)" xlim = np.array([4,1000])*u.pc/u.ly else: self.xlabel = 'Distance\n(parsecs)' xlim = np.array([4,1000]) self.ylabel = 'Planet Radius (Earth radii)' self.ylim=ylim self.xlim=xlim self.xscale='log' self.yscale='linear' self.set('goodmass') self.normalization = self.unnormalizedsize[self.pop.standard['name'] == 'GJ 1214b']