Marco, Thank you for your example. But in my plot the x axis has a log scale and I want to draw an arrow along y axis which has a linear scale. Michal Lijowski > From mvl@nikhef.nl Tue Jun 27 19:35:05 2000 > Delivered-To: lijowski@cosray2.wustl.edu > Date: Tue, 27 Jun 2000 21:08:19 +0200 (MET DST) > From: Marco van Leeuwen <mvl@nikhef.nl> > To: lijowski@cosray2.wustl.edu > Cc: roottalk@pcroot.cern.ch > Subject: Re: [ROOT] TArrow question > MIME-Version: 1.0 > > You can use a TArrow. This will accept pad-coordinates (i.e. in the same > scale as the coordinates in your Histogram/Graph/Axis). However, the > log-scale will be scaled in decades. > > Marco van Leeuwen > > {{ > gROOT->Reset(); > TCanvas *c1=new TCanvas("c1","Canvas #1",500,500); > gPad->SetLogy(); > gPad->DrawFrame(0,1,1,1000); > TArrow *arrow=new TArrow(0.3,2,0.3,1.5); > arrow->Draw(); > }} > > On 27 Jun 2000 lijowski@cosray2.wustl.edu wrote: > > > > > Hello, > > > > Is any way to draw an arrow on linear-log plot? I would like > > to use arrow to indicate the upper limit. Should I use TGraph > > to draw it? > > > > Thank you and regards > > > > Michal Lijowski > > > >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:29 MET