function drawing and log axes

Glenn E. Cooper (gecooper@lbl.gov)
Thu, 06 Aug 1998 16:53:25 -0700


This is a multi-part message in MIME format.
--------------FC09B2A35C91D887E22A9496
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

I am having trouble drawing a function in a pad
with log axes in the case when the function
range is smaller than the defined axis range.
In the following macro, the defined function
is never drawn.

{
gROOT->Reset();
c1 = new TCanvas("c1","TF1 with log Axes",200,10,700,500);
c1->SetLogx();
c1->DrawFrame(1,0,100,1);

f = new TF1("f","1/x",5,80);
f->Draw("same");
}

Note that if I do not use log axes, or if I
define the function range to be larger than
the frame, the function is properly drawn
within the frame. I discovered this in
try to fit a TGraph with a function with
a range smaller that the data points within
the TGraph. Here again, the fitted function
is never drawn when the TGraph is drawn.

Cheers,
Glenn
--------------FC09B2A35C91D887E22A9496
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Glenn E. Cooper
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Glenn E. Cooper
n: Cooper;Glenn E.
org: UC Berkeley/LBNL
adr;dom: 1 Cyclotron Rd.;;50A-1148;Berkeley;CA;94720;
email;internet: GECooper@lbl.gov
tel;work: 510-486-7129
tel;fax: 510-486-4818
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard

--------------FC09B2A35C91D887E22A9496--