2 from datetime
import datetime
5 from ..
import DirFromEnv
9 __all__ = [
'Plot2D',
'PlotBrazil',
'PlotFitParameters',
'PlotROC',
'PlotStack',
'PlotUtils',
'QuickPlot',
'RatioComparison']
12 """A function to prepend the correct output directory and make the directory, if needed 14 @param basename is the raw basename that is to be given to the output plot 15 @param default is the location given to the script if the environment variable CrombieOutPlotDir is not set 18 default =
'/home/dabercro/public_html/plots/%s_%s' % (datetime.today().strftime(
'%y%m%d'), default_suff)
20 return os.path.join(os.environ.get(
'CrombieOutPlotDir', default), basename)
24 """A function that sets up a plotter after sourcing a config file. 26 @param plotter is the plotter to setup. Defaults to plotter in this module. 28 from ..CommonTools.FileConfigReader
import SetupConfigFromEnv, SetFunctionFromEnv
32 if not os.environ.get(
'blind'):
36 (plotter.SetOutDirectory,
'CrombieOutPlotDir'),