[Rivet] plotting questions

Hendrik Hoeth hendrik.hoeth at cern.ch
Sun Mar 14 13:28:17 GMT 2010


Hi guys,

Thus spake Andy Buckley (andy.buckley at ed.ac.uk):

> These questions are probably best sent to the Rivet list -- I don't
> know many details about the plotting script. Hendrik knows the
> details, but I think is on holiday at the moment...

yes, I'm on holiday, but I can occasionally access my mail, and since
it's snowing all day today ...

> > 1) I'm editing the .dat file produced with the standard
> > compare-histos macro to add an X axis title. However when I use the
> > make-plots script the x title doesn't appear. I even tried giving
> > the title to the RatioPlotXLabel but again was thwarted! Do you know
> > where I'm going wrong?

Can you please send me your .dat file? Then I'll have a look at it.

> > 2) When editing the colour/existance of the error bands I am using
> > the following lines in the .dat file.
> > RatioPlotErrorBandColor=green
> > ErrorBands=1
> > ErrorBandColor=green
> > The colour change for both seems to work as do setting the existence
> > of them on the main plot (line 2) work for the legend but the actual
> > plot data points have no error bands visible.

Again, I'd have to have a look at it myself.

> > 3) when specifying the colours such as green above is there a way to
> > give rgb values?

As Andy said, you can use any color definition PSTricks supports, which
is anything xcolor supports. So have a look at the xcolor documentation
at
http://www.tex.ac.uk/tex-archive/macros/latex/contrib/xcolor/xcolor.pdf

To use rgb-colors try something like

LineColor={[rgb]{0.8,0,0.7}}

Or you can combine colors in certain ratios:

LineColor=red!50          is a 50% red + 50% white
LineColor=red!30!blue     is a 30% red + 70% blue
LineColor=red!30!blue!65  is a 65% red+blue mixture with red:blue=30:70

In fact there are many more options (hsb, cmyk, wavelengths in nm):

LineColor={[wave]{580}}      is the natrium line, i.e. yellow
LineColor={[cmyk]{1,1,0,0}}  1 cyan, 1 magenta, 0 yellow, 0 black
LineColor={[hsb]{0.5,1,1}}   0.5 hue, 1 saturation, 1 value

Cheers,

    Hendrik

-- 
"Two equal numbers are equivalent, even if they come from two
 different people one of which you don't like"
(MLM about the theoretical top cross-section, in a meeting
about theoretical uncertainties on the top mass)


More information about the Rivet mailing list