Revision 66e986b22a64490f33a93ae54247dca8880c8d0d authored by Wouter Verkerke on 19 March 2004, 06:25:33 UTC, committed by Wouter Verkerke on 19 March 2004, 06:25:33 UTC
o RooAbsArg - Remove friend declararion of class that was never committed git-svn-id: http://root.cern.ch/svn/root/trunk@8437 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent d8ec4e1
graph.C
{
//
// To see the output of this macro, click begin_html <a href="gif/graph.gif">here</a>. end_html
//
gROOT->Reset();
c1 = new TCanvas("c1","A Simple Graph Example",200,10,700,500);
c1->SetFillColor(42);
c1->SetGrid();
const Int_t n = 20;
Double_t x[n], y[n];
for (Int_t i=0;i<n;i++) {
x[i] = i*0.1;
y[i] = 10*sin(x[i]+0.2);
printf(" i %i %f %f \n",i,x[i],y[i]);
}
gr = new TGraph(n,x,y);
gr->SetLineColor(2);
gr->SetLineWidth(4);
gr->SetMarkerColor(4);
gr->SetMarkerStyle(21);
gr->SetTitle("a simple graph");
gr->GetXaxis()->SetTitle("X title");
gr->GetYaxis()->SetTitle("Y title");
gr->Draw("ACP");
// TCanvas::Update() draws the frame, after which one can change it
c1->Update();
c1->GetFrame()->SetFillColor(21);
c1->GetFrame()->SetBorderSize(12);
c1->Modified();
}
Computing file changes ...