|
[Rivet] histogram legend with spaces and other charactersRaghav Kunnawalkam Elayavalli raghav.k.e at cern.chMon May 23 16:37:48 BST 2016
HI Andy, Yeah it was a specific case i guess. I think its fine the way it is. you guys just need better patient users ;) ha ha Cheers Raghav > On May 23, 2016, at 5:35 PM, Andy Buckley <a.g.buckley at gmail.com> wrote: > > I know why... it's LaTeX so you need to escape % signs as \% otherwise you start a comment in the intermediate source file. I guess your command is creating a comment that breaks some matching of begin/end block commands and hence latex hangs (even though we're running it in non-interactive mode). > > Not sure if we can (or should) protect against that! But it would be nice to fail more helpfully than hanging... > > Andy > > > On 23/05/16 16:30, Raghav Kunnawalkam Elayavalli wrote: >> I just tried that it make-plots just hangs :( >> >> [rkunnawa at lxplus025 BKG]$ ls >> 0_20_wRecoils.yoda 0_20.yoda 50_100_wRecoils.yoda 50_100.yoda plots >> pp.yoda run.sh >> [rkunnawa at lxplus025 BKG]$ rivet-mkhtml pp.yoda >> 0_20_wRecoils.yoda:"0-20%, w/ Recoils" 0_20.yoda:"0-20%" >> 50_100_wRecoils.yoda:"50-100% w/ Recoils" 50_100.yoda:"50-100%" >> Making 7 plots >> and i tried to stop it with Ctrl-C >> ^CTraceback (most recent call last): >> File "/afs/cern.ch/work/r/rkunnawa/JEWEL/local/bin/rivet-mkhtml >> <http://cern.ch/work/r/rkunnawa/JEWEL/local/bin/rivet-mkhtml>", line >> 434, in <module> >> Popen(mp_cmd).wait() >> File >> "/cvmfs/sft.cern.ch/lcg/releases/LCG_84/Python/2.7.10/x86_64-slc6-gcc48-opt/lib/python2.7/subprocess.py >> <http://sft.cern.ch/lcg/releases/LCG_84/Python/2.7.10/x86_64-slc6-gcc48-opt/lib/python2.7/subprocess.py>", >> line 1384, in wait >> pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0) >> File >> "/cvmfs/sft.cern.ch/lcg/releases/LCG_84/Python/2.7.10/x86_64-slc6-gcc48-opt/lib/python2.7/subprocess.py >> <http://sft.cern.ch/lcg/releases/LCG_84/Python/2.7.10/x86_64-slc6-gcc48-opt/lib/python2.7/subprocess.py>", >> line 476, in _eintr_retry_call >> return func(*args) >> KeyboardInterrupt >> [rkunnawa at lxplus025 BKG]$ dvips: ! DVI file can't be opened. >> dvips: ! DVI file can't be opened. >> dvips: ! DVI file can't be opened. >> dvips: ! DVI file can't be opened. >> convert: no decode delegate for this image format >> `/tmp/rkunnawa/magick-ohQ9yH7y' @ error/constitute.c/ReadImage/532. >> convert: missing an image filename `JetMass.png' @ >> error/convert.c/ConvertImageCommand/3015. >> convert: no decode delegate for this image format >> `/tmp/rkunnawa/magick-_fcqD62y' @ error/constitute.c/ReadImage/532. >> .... >> GPL Ghostscript 8.70: ERROR -12 closing pdfwrite device. See >> gs/src/ierrors.h for code explanation. >> >> >>> On May 23, 2016, at 5:22 PM, Andy Buckley <a.g.buckley at gmail.com >>> <mailto:a.g.buckley at gmail.com>> wrote: >>> >>> Hi Raghav, >>> >>> You can give arbitrary histogram names on the command line like this: >>> >>> rivet-mkhtml a.yoda:A b.yoda:"Histo B" c.yoda:'$\mathcal{C}$' >>> >>> where the labels get increasingly silly from left to right. This is >>> just a convenient way of setting the Title attribute in each HISTOGRAM >>> block in the .dat files: those are used in the legend, while the Title >>> of the PLOT block (if given) is written at the top of the plot. >>> >>> Andy >>> >>> >>> On 23/05/16 13:26, Raghav Kunnawalkam Elayavalli wrote: >>>> Hi Rivet Experts, >>>> >>>> Its me again :) >>>> >>>> I have a question regarding histogram legends in the plot. At the >>>> moment, if we dont give a specific title, then the name of the yoda >>>> file is taken as the legend. Even if i try to give a different title, >>>> it has to be one without any spaces or special characters. for >>>> example i have a histogram that i ideally want to label >>>> 0-20%, w/ recoils >>>> but this wont get accepted now and make-plots just crashes. I have to >>>> say it like so 0_20_wRecoils and that works. Is there a way i can >>>> give my custom legend to the histogram. I see that you can give a >>>> custom legend in the make plot documentation page, but it looks like >>>> its only for the plot as opposed to a specific histogram? >>>> >>>> Cheers >>>> Raghav >>>> _______________________________________________ >>>> Rivet mailing list >>>> Rivet at projects.hepforge.org <mailto: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 >> > > > -- > Dr Andy Buckley, Lecturer / Royal Society University Research Fellow > Particle Physics Expt Group, University of Glasgow
More information about the Rivet mailing list |