[Rivet] [PATCH] rivet-cmphisto: Fix PLOT:RatioPlotYLabel="..."

Andy Buckley andy.buckley at cern.ch
Sat Jan 30 21:00:55 GMT 2016


Thanks!

On 30/01/16 10:35, Johann Felix v. Soden-Fraunhofen wrote:
> This change prevents overwritting RatioPlotYLabel if it is already
> set via PLOT:RatioPlotYLabel="...".
>
> diff -r dbc5698ff208 bin/rivet-cmphistos
> --- a/bin/rivet-cmphistos	Sat Dec 19 20:36:22 2015 +0000
> +++ b/bin/rivet-cmphistos	Sat Jan 30 11:29:58 2016 +0100
> @@ -429,7 +429,7 @@
>           if showratio and len(varlines + mainlines) > 1:
>               plot['RatioPlot'] = '1'
>               plot['RatioPlotReference'] = ratioreference
> -            if not hasdataref:
> +            if not hasdataref and not plot.has_key("RatioPlotYLabel"):
>                   if plot.get('RatioPlotMode', '') == 'deviation':
>                       plot['RatioPlotYLabel'] = 'Deviation' #r'$\text{MC}-\text{MC}_\text{ref}$'
>                   else:
>
> _______________________________________________
> Rivet mailing list
> Rivet at projects.hepforge.org
> https://www.hepforge.org/lists/listinfo/rivet
>


-- 
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow
Particle Physics Expt Group, University of Glasgow


More information about the Rivet mailing list