[Rivet] plotting two different ratios on same plot

Raghav Kunnawalkam Elayavalli raghav.k.e at cern.ch
Fri Jun 3 13:50:04 BST 2016


Yeah i agree with both of you guys that modifying tex files (once you know where things end up, is pretty methodical to make the plots you want) is not the best way forward. I briefly looked at the yoda interface and maybe ill set this up when i get some free time. 
I also quite like the make-plot system for simple plots, since using it after being a root user for several years. 

Cheers
Raghav
 

> On Jun 3, 2016, at 11:47 AM, Andy Buckley <a.g.buckley at gmail.com> wrote:
> 
> Indeed, scripting using the YODA interface is what I'd have suggested if I'd not been on the road and out of contact yesterday! There are also some functions in yoda.plotting which can help with converting YODA objects to number arrays that could be used as input to matplotlib -- feedback on those would be great, since I've not had time to finish designing/iterating that "new" plotting system.
> 
> The make-plots system has served us very well and produces aesthetically very nice output -- better (IMHO) than anything I've yet managed to make with ROOT or matplotlib. But it is limited in functionality. I'd love to either replace it with a matplotlib-based system with equal-quality output (which I've failed to do so far) or to isolate the components into a library which can be used more programmatically. Being the ultimate back-burner project, progress on either route has been infinitely slow, but if others would be interested in making our plotting more flexible/powerful then let me know and maybe we can start a new branch for collaboratively developing that side of things.
> 
> Andy
> 
> 
> On 02/06/16 16:23, David Bjergaard wrote:
>> Hi Raghav,
>> 
>> You will likely need to write your own script using the Yoda interface.  It
>> shouldn't be that bad, and make-plots should provide a decent tutorial for how
>> it works.
>> 
>> Here's the quickstart: http://yoda.hepforge.org/pydoc/
>> 
>> Sounds better than hacking tex files... that doesn't sound fun at all.
>> 
>>     David
>> 
>> 
>> Raghav Kunnawalkam Elayavalli <raghav.k.e at cern.ch> writes:
>> 
>>> Hi,
>>> 
>>> After a considerable amount of effort i have what i want. (I really
>>> hope that there is a simpler way to do this) I had to produce the tex
>>> files with the make-plots plot.dat --tex option for each plot. Then
>>> manually create another tex file with the necessary ratio plots i want
>>> and add all the other stuff.
>>> 
>>> Cheers
>>> Raghav
>>>> On Jun 2, 2016, at 3:39 PM, Raghav Kunnawalkam Elayavalli <raghav.k.e at cern.ch> wrote:
>>>> 
>>>> Hi Rivet experts,
>>>> 
>>>> I have 4 different spectra say A, B, C and D. I want to plot the
>>>> individual spectra, and in the ratio plot i want to plot A/B and
>>>> C/D. is there a simple way to do this? I tried putting the
>>>> ReferenceHistogram inside the BEGIN HISTO1D but that didnt work.
>>>> 
>>>> Cheers
>>>> Raghav
>>> 
>>> _______________________________________________
>>> Rivet mailing list
>>> Rivet at projects.hepforge.org
>>> https://www.hepforge.org/lists/listinfo/rivet
>> _______________________________________________
>> 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