Hi, Your pad range is the default range in x,y [0,1]. Your first point is in the range, but not the second point. You should set the pad range such that your points fit in this range. In general, you should not draw the axis and the frame yourself. Let high level objects do that automatically for you. Read the chapter about graphics in the Users Guide and look at the many examples we give in the tutorials. Rene Brun On Sat, 5 Jul 2003, zaldy wrote: > > Dear ROOT Experts, > > > How do we use TGaxis such that all the pair array elements (say nx[i], > ny[i], i = 0,1,2,...,N) can be plotted within the range define in the > TGaxis arguments? > > For example from graph.C in $ROOTSYS/tutorials, the axis is automatically > drawn using the Draw function: > > grap_pointer->Draw("ACP"); <==== this is ok... > > > But when the TGaxis is used and is defined such that: > xmin = 0, xmax = 150, ymin = 0, ymax = 150., > NDIV = some_value, OPTION = some_option_describe_in_manual, > etc... > > Then Plot two points: P1(0.5, 0.5) and P2(60.,60.), Only the the first > point P1(0.5, 0.5) appears in the pad. The other point P2 is outside the > pad. > > How do we deal or correct with this? > > Please see my code and output at these URL: > http://neutrino.kek.jp/~zaldy/root_work/MyRootFaq/myC.gif > http://neutrino.kek.jp/~zaldy/root_work/MyRootFaq/_WindowDef.cc > > > Thank you very much.... > > > *---------------------------* > | Version 3.04/02 | > | gcc version egcs-2.91.66 | > *---------------------------* > > > > > -------------------------------------------------------- > 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:13 MET