Dear all, A couple of new-user questions regarding the introductory tutorial h1draw.C. First, I change the following third pad lines hpx->Draw("e1p"); label3 = new TPaveLabel(2,600,3.5,650,"option e1p"); label3->SetFillColor(42); // // The following illustrates how to add comments using a PaveText. to add a simple text hpx->Draw("e1p"); label3 = new TPaveLabel(2,600,3.5,650,"option e1p"); label3->SetFillColor(42); TText *text = new TText(2.,300.,"Test"); text->Draw(); label3->Draw(); // // The following illustrates how to add comments using a PaveText. This works fine. However, if I use the mouse to click on SetLogy, then the added text disappears. The same thing happens directly on a canvas. This all came up when I tried to add text on semi-log plots, after having been able to add text easily enough on linear-linear plots. Second question. If I add a "void h1draw()" line to the original version of h1draw.C, and then give the command ".x h1draw.C" all works fine for the top 2 plots, but the data points in the bottom plot flash by instantaneously and disappear. Only the text remains. As it happens, I am used to adding defaulted parameters in the macro call, and would like to know the explanation of the different results. I am running ROOT2.23/12 on an SGI/IRIX6.5 . The same behavior also occurs running the same ROOT version on an RH6.1 platform. Thanks, Charlie Maguire
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:25 MET