plotting.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:ugali 作者: DarkEnergySurvey 项目源码 文件源码
def plot6(self, filename, title=None):
        fig = plt.figure('summary', figsize=(11, 6))
        fig.subplots_adjust(wspace=0.4, hspace=0.25)
        fdg = r'{.}\!^\circ'
        coordstring = ('%.2f, %.2f'%(self.ra, self.dec)).replace('.',fdg)
        if title is None:
            #title = r'%s; ($\alpha_{2000}$, $\delta_{2000}$, $m-M$) = (%s, %.2f)'%(self.source.name, coordstring, self.isochrone.distance_modulus)
            title = r'$(\alpha_{2000}, \delta_{2000}, m-M) = (%s, %.1f)$'%(coordstring, self.isochrone.distance_modulus)

        if title: 
            plt.suptitle(title, fontsize=14)

        logger.debug("Drawing smooth stars...")
        plt.subplot(2, 3, 1)
        self.drawSmoothStars()

        logger.debug("Drawing density profile...")
        pylab.subplot(2, 3, 2)
        self.drawDensityProfile()

        logger.debug("Drawing spatial distribution of members...")
        pylab.subplot(2, 3, 3)
        self.drawMembersSpatial(filename)

        logger.debug("Drawing smooth galaxies...")
        plt.subplot(2, 3, 4)
        self.drawSmoothGalaxies()

        logger.debug("Drawing Hess diagram...")         
        plt.subplot(2,3,5)
        self.drawHessDiagram()

        logger.debug("Drawing CMD of members...")                  
        pylab.subplot(2, 3, 6)
        self.drawMembersCMD(filename)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号