Re: [ROOT] error bar tick marks

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jan 30 2004 - 13:49:01 MET


Matt,

The size of the error bar tick marks is proportional to the size
of the marker. Increase the marker size via graph->SetMarkerSize(xxx); with
eg xxx=2

If this solution does not work, you can always make two Draws, eg
  mygraph.SetMarkerStyle(1); //a small dot
  mygraph.SetMarkerSize(3);  //to get large tick marks (3 times the default)
  mygraph.DrawCopy("a");     //will draw the graph with the error bars
  mygraph.SetMarkerStyle(21);//choose the real marker
  mygraph.SetMarkerSize(1);  //with the right size
  mygraph.Draw("pX");        //draw the marker only


The default size should be good in principle. Could you send a small script (or
canvas.root) where the default is not good?

Rene Brun

"Matthew S. Lightwood" wrote:
> 
> Hello Rooters
> 
>   I'm using the TGraphAssymErrors class to put some sytematics errors
> onto a plot and want to make the tick marks at the end of the error bars
> larger, since the default doesn't look very good. I can't find the
> appropriate method anywhere, except in PAW where it seems to be possible
> with "set ksiz" and in microsoft excel. Any ideas on how to achieve this
> anyone?
> 
> Thanks very much.
> 
> Matt Lightwood.



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET