Hi Henrique, Unfortunately, it was too late to put this fix in the 3.02 release. I have added a fix in TPad::DrawFrame and TGraph::PaintGraph to automatically suppress this line. (now in CVS) Meanwhile, you can circumvent the problem by drawing a frame via an empty TH1F histogram paint with option "a". Example TH1F *frame = new TH1F("frame","",2,xmin,xmax); frame->SetMinimum(ymin); frame->setmaximum(ymax); frame->Draw("a"); Rene Brun Henrique de M. J. Barbosa - mestrado wrote: > > Dear Rooters, > > I would like to ask a simple question I couldn't find the answer to in the > manual. How do I draw a simple TGraph without getting that annoying line > parallel to the x axis marking the y=0 position? > > I've tried with and without grid lines and the y=0 line is always there. > Is there a simple way to draw a graph without it? > > I have taken a look at the tutorials pages but all examples with graphs > have only y>0 values but in my case I have positive and negative values. > So the y=0 line is not the x axis. > > I am sending attached a picture of a graph where the problem shows up. > > thanks, > > Henrique > **************************************** > State University at Campinas - BRASIL > "Gleb Wathagin" Physics Institute > Department of Cosmic Rays and Chronology > > Henrique Barbosa The Pierre Auger > PhD Student Observatory > ****************************************
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:12 MET