|
[Rivet-svn] r2662 - in trunk: bin docblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Aug 18 14:38:59 BST 2010
Author: fsiegert Date: Wed Aug 18 14:38:58 2010 New Revision: 2662 Log: make-plots: Add switch to change plotting style of reference data in ratio plot. Modified: trunk/bin/make-plots trunk/doc/make-plots.txt Modified: trunk/bin/make-plots ============================================================================== --- trunk/bin/make-plots Wed Aug 18 14:34:47 2010 (r2661) +++ trunk/bin/make-plots Wed Aug 18 14:38:58 2010 (r2662) @@ -526,14 +526,15 @@ inputdata.description['YMax']=inputdata.description['RatioPlotYMax'] if not inputdata.description.has_key('RatioPlotErrorBandColor'): inputdata.description['RatioPlotErrorBandColor']='yellow' - inputdata.histos[self.refdata].description['ErrorBandColor']=inputdata.description['RatioPlotErrorBandColor'] - inputdata.histos[self.refdata].description['ErrorBands']='1' - inputdata.histos[self.refdata].description['ErrorBars']='0' - inputdata.histos[self.refdata].description['LineStyle']='solid' - inputdata.histos[self.refdata].description['LineColor']='black' - inputdata.histos[self.refdata].description['LineWidth']='0.3pt' - inputdata.histos[self.refdata].description['PolyMarker']='' - inputdata.histos[self.refdata].description['ConnectGaps']='1' + if not inputdata.description.has_key('RatioPlotSameStyle') or inputdata.description['RatioPlotSameStyle']=='0': + inputdata.histos[self.refdata].description['ErrorBandColor']=inputdata.description['RatioPlotErrorBandColor'] + inputdata.histos[self.refdata].description['ErrorBands']='1' + inputdata.histos[self.refdata].description['ErrorBars']='0' + inputdata.histos[self.refdata].description['LineStyle']='solid' + inputdata.histos[self.refdata].description['LineColor']='black' + inputdata.histos[self.refdata].description['LineWidth']='0.3pt' + inputdata.histos[self.refdata].description['PolyMarker']='' + inputdata.histos[self.refdata].description['ConnectGaps']='1' self.calculate_ratios(inputdata) self.set_borders(inputdata) self.coors = Coordinates(inputdata) @@ -550,7 +551,10 @@ def calculate_ratios(self,inputdata): foo=inputdata.description['DrawOnly'].pop(inputdata.description['DrawOnly'].index(self.refdata)) - inputdata.description['DrawOnly'].insert(0,foo) + if inputdata.histos[self.refdata].description.has_key('ErrorBands') and inputdata.histos[self.refdata].description['ErrorBands']=='1': + inputdata.description['DrawOnly'].insert(0,foo) + else: + inputdata.description['DrawOnly'].append(foo) for i in inputdata.description['DrawOnly']: if i!=self.refdata: if inputdata.description.has_key('RatioPlotMode') and inputdata.description['RatioPlotMode']=='deviation': Modified: trunk/doc/make-plots.txt ============================================================================== --- trunk/doc/make-plots.txt Wed Aug 18 14:34:47 2010 (r2661) +++ trunk/doc/make-plots.txt Wed Aug 18 14:38:58 2010 (r2662) @@ -267,6 +267,14 @@ RatioPlotErrorBandColor=<color> -------------------- +By default, the reference data is plotted using a yellow error band around the +central value of the ratio plot. If you would rather have it plotted in the +same style as in the main plot (e.g. with black errorbars), you can specify: + +-------------------- +RatioPlotSameStyle=1 +-------------------- + If you only want the ratio plot without showing the actual data distribution, you can switch off the main plot. This option implies `RatioPlot=1`:
More information about the Rivet-svn mailing list |