"%lg%lg%lg%lg");//x y ex eyg1->SetName("g1;");g1->SetTitle("Graph1;");//可以自己设置一些画图的参数g1->SetMarkerStyle(21);g1->SetMarkerColor(1);g1->SetDrawOption("AP");g1->SetLineColor(1);g1->SetLineWidth(1);g1->SetFillStyle(0);//如果需要拟合可以这样自己定义...
h1st->SetFillColor(kRed); h1st->SetMarkerStyle(21);//设置点形状 h1st->SetMarkerColor(kRed); hs->Add(h1st);//把h1st谱堆到hs中 TH1F *h2st =newTH1F("h2st","test hstack",100,-4,4);//定义h2st类指针 h2st->FillRandom("gaus",15000); h2st->SetFillColor(kBlue); h2st->SetM...
打开view->editor 滑到最底部 然后选择大一点的marker。 "AC" 是smooth line , "AL"只有line,"APL"既有点又有线 通过view->marker来看marker的编号,写到代码里。 g = new TGraph("data.txt") g->SetMarkerStyle(21) 类似的在terminal里输入g->Set 然后按tab发现一些其他的设置,比如...
spline3->SetMarkerStyle(20);spline3->SetMarkerSize(1.5);// Draw the third splinespline3->Draw("lcpsame");sprintf(text,"%3d knots",nnp);textn->SetTitle(text);gPad->Update();//gSystem->Sleep(500); } }Footer © 2023 GitHub, Inc. Footer navigation Terms Privacy Security Status ...
("Graph1;");//可以自己设置一些画图的参数g1->SetMarkerStyle(21);g1->SetMarkerColor(1);g1->SetDrawOption("AP");g1->SetLineColor(1);g1->SetLineWidth(1);g1->SetFillStyle(0);//如果需要拟合可以这样自己定义函数TF1*f1=newTF1("f1","[0]+[1]*x+[2]*x*x+[3]*x*x*x",0,10);...