|
[Rivet-svn] rivet: Alias flags for MC error bar plottingRivet Mercurial rivet at projects.hepforge.orgThu May 31 22:15:02 BST 2018
details: https://rivet.hepforge.org/hg/rivet/rev/0e03fbe8d503 branches: release-2-6-x changeset: 6324:0e03fbe8d503 user: Andy Buckley <andy at insectnation.org> date: Thu May 31 22:12:04 2018 +0100 description: Alias flags for MC error bar plotting diffs (43 lines): --- a/bin/rivet-cmphistos Thu May 31 14:40:20 2018 +0100 +++ b/bin/rivet-cmphistos Thu May 31 22:12:04 2018 +0100 @@ -62,7 +62,7 @@ stygroup = OptionGroup(parser, "Plot style") stygroup.add_option("--linear", action="store_true", dest="LINEAR", default=False, help="plot with linear scale") - stygroup.add_option("--errs", "--mc-errs", action="store_true", dest="MC_ERRS", + stygroup.add_option("--errs", "--mcerrs", "--mc-errs", action="store_true", dest="MC_ERRS", default=False, help="show vertical error bars on the MC lines") stygroup.add_option("--no-ratio", action="store_false", dest="RATIO", default=True, help="disable the ratio plot") @@ -115,13 +115,13 @@ for path, ao in analysisobjects.items(): ## We can't plot non-histograms yet # TODO: support counter plotting with a faked x (or y) position and forced plot width/height - if ao.type not in ("Counter", - "Histo1D", - "Histo2D", - "Profile1D", - "Profile2D", - "Scatter1D", - "Scatter2D", + if ao.type not in ("Counter", + "Histo1D", + "Histo2D", + "Profile1D", + "Profile2D", + "Scatter1D", + "Scatter2D", "Scatter3D"): continue --- a/bin/rivet-mkhtml Thu May 31 14:40:20 2018 +0100 +++ b/bin/rivet-mkhtml Thu May 31 22:12:04 2018 +0100 @@ -64,7 +64,7 @@ default=False, help="display plots on single webpage.") stygroup.add_option("--no-ratio", dest="SHOW_RATIO", action="store_false", default=True, help="don't draw a ratio plot under each main plot.") -stygroup.add_option("--errs", "--mc-errs", dest="MC_ERRS", action="store_true", +stygroup.add_option("--errs", "--mcerrs", "--mc-errs", dest="MC_ERRS", action="store_true", default=False, help="plot error bars.") stygroup.add_option("--offline", dest="OFFLINE", action="store_true", default=False, help="generate HTML that does not use external URLs.")
More information about the Rivet-svn mailing list |