Hi Kevin, What is the problem? You can create a TArrow object for each of your points (new TArrow(xmin,ymin,xmax,ymax)) where xmin,ymin, etc are computed from the bin coordinates. It may be more convenient to create one single TArrow, set its graphics attributes (line width, angle, etc), and use TArrow::DrawArrow to make a new instance. Note that you can also add the TArrow objects to hist->GetListOfFunctions(). When drawing the histogram, the arrows will be automatically drawn. Rene Brun On Wed, 28 May 2003, Kevin Reil wrote: > Hi, > > I would like to ba able to draw an arrow on each point plotted in 2d and > 3d histograms. > > IE at point (2,3) draw a unit arrow pointing in direction (1,0) > and loop over points... > > Or > at point (1,1,1) a unit arrow pointing in direction (0,1,1) > and loop of points... > > etc > > Is there a quick way? > > Cheers, > Kevin > > |------------------------------------|---------------------------------| > | Kevin Reil | 2575 Sand Hill Road, MS 26 | > | X2447, 103D A&E Bldg. 041 | Menlo Park, CA 94025 | > |------------------------------------|---------------------------------| > | http://www.slac.stanford.edu/~reil | Office (650) 926-2447 | > | reil@slac.stanford.edu | Home (650) 938-1767 | > | http://reil.no-ip.org | Fax (650) 926-5368 | > |----------------------------------------------------------------------| > | And my father dwelt in a tent. | > |----------------------------------------------------------------------| >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET