|
[Rivet-svn] r1907 - in trunk: bin data/plotinfo docblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Oct 15 12:54:02 BST 2009
Author: hoeth Date: Thu Oct 15 12:54:02 2009 New Revision: 1907 Log: make-plots: New option "FullRange" overriding the --full-range command line option. This is now used in the CDF_2009_S8233977.plot file. Modified: trunk/bin/make-plots trunk/data/plotinfo/CDF_2009_S8233977.plot trunk/doc/make-plots.txt Modified: trunk/bin/make-plots ============================================================================== --- trunk/bin/make-plots Wed Oct 14 16:56:54 2009 (r1906) +++ trunk/bin/make-plots Thu Oct 15 12:54:02 2009 (r1907) @@ -217,7 +217,13 @@ foo=[item for item in foo if item>0.0] if len(foo)==0: foo.append(2e-4*ymax) - if opts.FULL_RANGE: + fullrange = opts.FULL_RANGE + if inputdata.description.has_key('FullRange'): + if inputdata.description['FullRange']=='1': + fullrange = True + else: + fullrange = False + if fullrange: ymin = min(foo)/1.7 else: ymin = max(min(foo)/1.7, 2e-4*ymax) Modified: trunk/data/plotinfo/CDF_2009_S8233977.plot ============================================================================== --- trunk/data/plotinfo/CDF_2009_S8233977.plot Wed Oct 14 16:56:54 2009 (r1906) +++ trunk/data/plotinfo/CDF_2009_S8233977.plot Thu Oct 15 12:54:02 2009 (r1907) @@ -8,11 +8,17 @@ Title=track $p_T$ XLabel=$p_T$ / GeV YLabel=$\text{d}^3 \sigma / p_T \text{d}p_T \text{d}y \text{d}\phi$ +LogX=1 +LogY=1 +FullRange=1 # END PLOT # BEGIN PLOT /CDF_2009_S8233977/d03-x01-y01 Title=$\sum E_T$ XLabel=$\sum E_T$ / GeV YLabel=$\text{d}^3 \sigma / \text{d}E_T \text{d}\eta \text{d}\phi$ +LogX=1 +LogY=1 +FullRange=1 # END PLOT Modified: trunk/doc/make-plots.txt ============================================================================== --- trunk/doc/make-plots.txt Wed Oct 14 16:56:54 2009 (r1906) +++ trunk/doc/make-plots.txt Thu Oct 15 12:54:02 2009 (r1907) @@ -119,11 +119,13 @@ YMax=<value> ZMin=<value> ZMax=<value> +FullRange=<0|1> -------------------- Specify the plot range. By default the range is chosen such that all data is visible in linear plots. In logarithmic plots the automatic choice of `YMin` is limited to be not smaller than 2e-4*`YMax`, but manually you can specify -any value. +any value. `FullRange=1` also overrides the 2e-4*`YMax` limit and plots the +full range in y. Sizes and Margins
More information about the Rivet-svn mailing list |