Dear Rooters,
I have a problem with version ROOT 2.22 in drawing Functions (TF1) with
logarithmic scales.
The code included below works fine on version,
* Version 2.21/06 18 February 1999 *
but with version
* Version 2.22/10 28 July 1999 *
i get the following message
Error in <TGraph::PaintGraphHist>: X must have N+1 values with option N
when the line y09->Draw("same") is executed.
In addition, the line is not drawn up to the end.
Ciao and thanks in advance
Thomas
h1kine()
{
TCanvas *c = new TCanvas("a","");
c->SetLogx();
c->SetLogy();
c->Draw();
TH1F *h = new TH1F("d","d", 1, 0.0006, 0.4);
h->SetMaximum(7000);
h->SetMinimum(50);
h->Draw("");
// iso y lines
TF1 *y09 = new TF1("y09","0.9*4*27.5*820*x",.0006158,.0862281);
y09->SetLineWidth(1);
y09->Draw("same");
c->Update();
}
Ciao
Thomas
----------------------------------------------------------------------------
Thomas Hadig, Ottensen, Donnerstr. 20, D-22763 Hamburg (+49 40 39901186)
office : I. Phys. Institut AAC, Room 1c354, Notkestr. 85, D-22607 Hamburg
hadig@rwth-aachen.de Tel. +49 40 8998 2312
http://www-h1.desy.de/~hadig/ FAX +49 40 8998 4385
----------------------------------------------------------------------------
Windows - the user friendly interface! Brought to you by the makers of EDLIN
----------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:39 MET