|
[Rivet-svn] rivet: Improve exponent handling in plot tick label formattingRivet Mercurial rivet at projects.hepforge.orgFri Nov 13 17:00:01 GMT 2015
details: https://rivet.hepforge.org/hg/rivet/rev/3b1b93b58567 branches: release-2-4-x changeset: 4932:3b1b93b58567 user: Andy Buckley <andy at insectnation.org> date: Fri Nov 13 16:59:33 2015 +0000 description: Improve exponent handling in plot tick label formatting diffs (truncated from 342 to 50 lines): --- a/bin/make-plots Fri Nov 13 12:58:01 2015 +0000 +++ b/bin/make-plots Fri Nov 13 16:59:33 2015 +0000 @@ -66,8 +66,9 @@ class Inputdata(object): + def __init__(self, filename): - self.filename=filename+".dat" + self.filename = filename+".dat" self.histos = {} self.special = {} self.functions = {} @@ -112,7 +113,7 @@ ## Plot (and subplot) sizing self.description.setdefault('PlotSizeX', 10.) if self.description['is2dim']: - self.description['PlotSizeX'] -= 1.5 + self.description['PlotSizeX'] -= 1.7 self.description['MainPlot'] = '1' self.description['RatioPlot'] = '0' @@ -239,6 +240,7 @@ class Plot(object): + def __init__(self,inputdata): pass @@ -438,7 +440,7 @@ else: inputdata.description['BottomMargin'] = 0.95 if inputdata.description['is2dim']: - inputdata.description['RightMargin'] += 1.5 + inputdata.description['RightMargin'] += 1.7 papersizex = inputdata.description['PlotSizeX'] + 0.1 + \ inputdata.description['LeftMargin'] + inputdata.description['RightMargin'] papersizey = inputdata.description['PlotSizeY'] + inputdata.description['RatioPlotSizeY'] + 0.1 + \ @@ -494,6 +496,7 @@ class MainPlot(Plot): + def __init__(self, inputdata): self.set_normalization(inputdata) self.stack_histograms(inputdata) @@ -677,6 +680,7 @@
More information about the Rivet-svn mailing list |