Re: [ROOT] Drawing many points of Array X[n], Y[n] without using TGraph...

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Dec 11 2003 - 14:45:48 MET


Hi Zaldy,

I am not sure to understand your request.
You can always use basic primitives such as TLine, TBox, TPolyLine, etc

Rene Brun

zaldy wrote:
> 
> Dear Rooters,
> 
> How do we draw many points on the Pad represented by N elements of X[N]
> and Y[N] with out using the TGraph?
> 
> By TGraph the drawing is straight-forward, however I want to draw other
> objects like a box, line, etc..., and I want to optimize space. By
> optimize, I mean that for example "just" after the point mark by "@",
> there  is a box. The distance of the box and the point "@" is close , but
> because of the vertical margin B, the Box cannot be drawn near "@". The
> Box seems to appear at P2 because of the margin B of TGraph.
> 
> I want something like:
>     Draw a Point/Box at coordinates (xp,yp) of the Pad. From it I am
> free to move the box or any point closer or farther from point "@" by
> specifying their coordinates (xp,yp).
> 
> Thanks for your time.
> 
>    ***********************************************************************
>    *          Tool Bar menus    for Canvas                               *
>    ***********************************************************************
>    *                                                                     *
>    *  ************************************< Margin D (Horizontal)
>    *  *                                  *    *                       *  *
>    *  *                                  *    *                       *  *
>    *  *                                  *    *                       *  *
>    *  *                                  *    *                       *  *
>    *  *                                  *    *                       *  *
>    *  *                                  *    *                       *  *
>    *  *              TGraph           @ BOX   P2                      *  *
>    *  *                                  *    *                       *  *
>    *  *                                  *    *                       *  *
>    *  *                                  *    *                       *  *
>    *  *                                  *    *                       *  *
>    *  *                                  *    *                       *  *
>    *  *                                  *    *                       *  *
>    *  ************************************  < Margin C (Horizontal)
>       ^                                  ^
>    Margin A                             Margin B
>    (vertical)                         (vertical)
> 
>  --
> 
> --------------------------------------------------------
>                    Zaldy A. Nawang
>                    PS Users Room 2
>                    Yon Gokan,
>                    E362, Neutrino Group,
>                    IPNS, KEK,
>                    Japan
> 
>                    e-mail: zaldy@neutrino.kek.jp
>                    Tel. No. : (81) 029864 - 5387
> --------------------------------------------------------



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET