analysis.py 文件源码

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

项目:AdK_analysis 作者: orbeckst 项目源码 文件源码
def autoplot(self,mode='observable',runtype=None,figdir=None, **plotargs):
        """Make the standard plot of the data.

        autoplot(AngleprojectedObservable, mode=MODE,runtype='RUNTYPE',figdir=None,**plotargs)

        plotargs (see AngleprojectedObservable.plot()):

        title       None:   generate title for each individual plot
                            using the observables legend
                    string: use provided title for _all_ plots
                    "":     no title
        min_contour |
        max_contour +- boundaries for the contour plot                    
        cmap        pylab colormap instance or None for the default [cm.jet]
        alpha       alpha for the filled contours [1.0]

        overlay   function that is called with no arguments, eg
                  overlay = lambda : coRMSD.DeltaRMSD.plot(with_colorbar=False,clf=False,with_filled=False,linewidth=3,colors='white')

        """
        import pylab

        qualifier = self.qualifier or ""  # gives just trailing slash if no self.qualifier
        figdir = figdir or os.path.join(config.basedir,'figs',self.observable_type,qualifier)
        filebasename = self.filebasename(runtype)

        was_interactive = pylab.matplotlib.is_interactive()
        pylab.matplotlib.interactive(False)

        self._auto_plots(mode,filebasename,figdir,plotargs)

        pylab.matplotlib.interactive(was_interactive)  # revert to previous state
        return figdir
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号