PAW Syntax | ROOT Syntax |
fun1 1 sin(x) 100 0. 3.14 | fun1 = new TF1("fun1","sin(x)",0.,3.14); fun1->Draw(); |
fun2 2 sin(x)*sin(y) 100 0. 3.14 100 0. 3.14 | fun2 = new TF2("fun2","sin(x)*sin(y)",0.,3.14,0.,3.14); fun2->Draw("surf4"); |
ntuple/create 10 ' ' 3 ' ' 1024 x y z | n10 = new TNtuple("n10","Ntuple 10","z:y:x"); |
ntuple/read 10 xyz.dat | ntuplefix.C |
ntuple/plot 10.x | ntuple.Draw("x"); |
ntuple/plot 10.y%x | ntuple.Draw("y:x"); |
ntuple/plot 10.z%y%x | ntuple.Draw("z:y:x"); |
ntuple/plot 10.x*x+y*y | ntuple.Draw("x*x+y*y"); |
ntuple/plot 10.x x>0 | ntuple.Draw("x","(x>0)"); |
ntuple/plot 10.x ! ! ! ! s | ntuple.Draw("x","","same"); |
ntuple/project 110 10.x | ntuple.Draw("x>>h110","","h110"); |
histo/plot 110 | h110.Draw(); |
zone 2 2 histo/plot 1 histo/plot 2 histo/plot 3 histo/plot 4 |
c1 = new TCanvas("c1"," ",200,10,600,480); TPad pad1("pad1"," ",0.1,0.6,0.6,0.9); TPad pad2("pad2"," ",0.6,0.9,0.6,0.9); TPad pad3("pad3"," ",0.1,0.6,0.1,0.4); TPad pad4("pad4"," ",0.6,0.9,0.1,0.4); pad1.Draw(); pad1.cd(); h1.Draw(); pad2.Draw(); pad2.cd(); h2.Draw(); pad3.Draw(); pad3.cd(); h3.Draw(); pad4.Draw(); pad4.cd(); h4.Draw(); |
zone 2 2 histo/plot 1 histo/plot 2 histo/plot 3 histo/plot 4 |
c1 = new TCanvas("c1"," ",200,10,600,480); c1.Divide(2,2); // automatic pad generation c1_1.Draw(); c1_1.cd(); h1.Draw(); c1_2.Draw(); c1_2.cd(); h2.Draw(); c1_3.Draw(); c1_3.cd(); h3.Draw(); c1_4.Draw(); c1_4.cd(); h4.Draw(); |
text 0.5 0.5 "TEXT" 0.35 |
TText t1(0.5,0.5,"TEXT"); t1->SetTextSize(0.35); t1.Draw(); |
line 0.05 0.05 0.95 0.95 |
TLine line1(0.05,0.05,0.95,0.95); line1.Draw(); |
fortran/file 66 graph.ps meta -66 -111 picture/plot fortran/close 66 |
TPostScript ps("graph.ps",-111); c1->Draw(); ps.Close(); |