|
[Rivet] make-plots - possibility to have LogY also for ratio plotsAntonin Maire (CERN) antonin.maire at cern.chWed Feb 14 09:25:11 GMT 2018
Good morning Rivet authors, I am currently working with Rivet 2.5.1 (ALICE central installation on Grid) but my personal demand seems to be still valid in version 3.0 alpha. Would it be possible to introduce the possibility to have LogY option also for ratio plots ? To do that, I have tampered with bin/make-plots python code by having the following change : In v2.5.1 @@ -208,6 +212,7 @@ class InputData(Described): self.description['LogX'] = self.description.has_key('LogX') and self.description['LogX']=='1' self.description['LogY'] = self.description.has_key('LogY') and self.description['LogY']=='1' self.description['LogZ'] = self.description.has_key('LogZ') and self.description['LogZ']=='1' + self.description['RatioPlotLogY'] = self.description.has_key('RatioPlotLogY') and self.description['RatioPlotLogY']=='1' if self.description.has_key('Rebin'): for i in self.histos: self.histos[i].description['Rebin'] = self.description['Rebin'] The same lines are around l.135 in v3.0.0alpha1 I am not a Python coder so my solution may not be the best (you may have better to propose...), but at least having instructions like 'RatioPlotLogY=1' into .plot files seems to produce the expected result. Regards, Antonin -------------- next part -------------- A non-text attachment was scrubbed... Name: antonin_maire.vcf Type: text/x-vcard Size: 4 bytes Desc: not available URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20180214/cf471ed0/attachment.vcf>
More information about the Rivet mailing list |