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
评论列表
文章目录