|
[Rivet-svn] r2363 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Mar 25 17:35:01 GMT 2010
Author: fsiegert Date: Thu Mar 25 17:35:00 2010 New Revision: 2363 Log: Allow for custom reference data legend title again (fixes #394). Modified: trunk/bin/compare-histos Modified: trunk/bin/compare-histos ============================================================================== --- trunk/bin/compare-histos Thu Mar 25 13:33:16 2010 (r2362) +++ trunk/bin/compare-histos Thu Mar 25 17:35:00 2010 (r2363) @@ -144,8 +144,8 @@ if opts.REF_ID != "REF": opts.REF_ID = os.path.abspath(opts.REF_ID) if not os.access(opts.REF_ID, os.R_OK): - logging.error("Error: cannot read reference file %s" % opts.REFNAME) - exit(2) + logging.error("Error: cannot read reference file %s" % opts.REF_ID) + sys.exit(2) def getHistos(aidafile): @@ -332,10 +332,10 @@ if HISTOS[hfile][name].isdata: histstr += "ErrorBars=1\n" histstr += "PolyMarker=*\n" - expname = HISTOS[hfile][name].histoPath().split("_")[0] - if expname.startswith("/"): - expname = expname[1:] - histstr += "Title=%s data\n" % expname + legendtitle = LABELS["REF"] + if legendtitle == "data": + legendtitle = "%s data" % HISTOS[hfile][name].histoPath().split("_")[0][1:] + histstr += "Title=%s\n" % legendtitle else: color, style = STYLES[i % len(STYLES)] if opts.MC_ERRS:
More information about the Rivet-svn mailing list |