|
[Rivet-svn] r2359 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Mar 24 11:47:34 GMT 2010
Author: fsiegert Date: Wed Mar 24 11:47:33 2010 New Revision: 2359 Log: Add the proposed plotting improvements to compare-histos. Modified: trunk/bin/compare-histos Modified: trunk/bin/compare-histos ============================================================================== --- trunk/bin/compare-histos Tue Mar 23 23:24:29 2010 (r2358) +++ trunk/bin/compare-histos Wed Mar 24 11:47:33 2010 (r2359) @@ -256,7 +256,7 @@ ## Identify contributing data files for this histo activefiles = [] - for f in FILES + ["REF"]: + for f in ["REF"] + FILES: if HISTOS.has_key(f): d = HISTOS[f] if d.has_key(name): @@ -294,6 +294,9 @@ "LogY" : "%d" % int((len(HISTOS[ref][name].getBins()) > 1) and not opts.LINEAR), "DrawOnly" : drawonlystr, "RatioPlot" : "%d" % int(not opts.NORATIO), + "XTwosidedTicks" : "1", + "YTwosidedTicks" : "1", + "LegendYPos" : "0.92", "RatioPlotReference" : "%s%s" % (ref, HISTOS[ref][name].fullPath())} headstr = "# BEGIN PLOT\n" @@ -329,7 +332,7 @@ if HISTOS[hfile][name].isdata: histstr += "ErrorBars=1\n" histstr += "PolyMarker=*\n" - histstr += "Title=%s\n" % LABELS["REF"] + histstr += "Title=%s data\n" % HISTOS[hfile][name].histoPath().split("_")[0] else: color, style = STYLES[i % len(STYLES)] if opts.MC_ERRS:
More information about the Rivet-svn mailing list |