Loading...如加载时间过长,请尝试科学上网。

棺と花束

写给金鱼脑的自己用的ROOT备忘录

221字理工ROOT30次阅读0条评论

Plotting

  • TF1:T Formula 1

    TF1 TF1(const char* name, const char* formula, Double_t xmin, Double_t xmax, Option_t* option)

  • TCanvas

    TCanvas TCanvas(const char* name, const char* title, Int_t wtopx, Int_t wtopy, Int_t ww, Int_t wh)

Setting Style

存个.C慢慢研究就好,大概。

好奇怪为什么2D的图不给显示AxisTitle。

   TGraph *graph = new TGraph(65537,_fx1,_fy1);
   graph->SetName("");
   graph->SetTitle("");
   graph->SetFillStyle(1000);

   TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","",65537,0,72089.6);
   Graph_Graph1->SetMinimum(-0.01285635);
   Graph_Graph1->SetMaximum(0.05103912);
   Graph_Graph1->SetDirectory(0);
   Graph_Graph1->SetStats(0);

   Graph_Graph1->SetLineColor(ci);
   Graph_Graph1->GetXaxis()->SetLabelFont(42);
   Graph_Graph1->GetXaxis()->SetLabelSize(0.035);
   Graph_Graph1->GetXaxis()->SetTitleSize(0.035);
   Graph_Graph1->GetXaxis()->SetTitleOffset(1);
   Graph_Graph1->GetXaxis()->SetTitleFont(42);
   Graph_Graph1->GetYaxis()->SetLabelFont(42);
   Graph_Graph1->GetYaxis()->SetLabelSize(0.035);
   Graph_Graph1->GetYaxis()->SetTitleSize(0.035);
   Graph_Graph1->GetYaxis()->SetTitleFont(42);
   Graph_Graph1->GetZaxis()->SetLabelFont(42);
   Graph_Graph1->GetZaxis()->SetLabelSize(0.035);
   Graph_Graph1->GetZaxis()->SetTitleSize(0.035);
   Graph_Graph1->GetZaxis()->SetTitleOffset(1);
   Graph_Graph1->GetZaxis()->SetTitleFont(42);

Tips

ROOT里头std要写成TString【。

End.
声明
本博所有图文如未特别声明,均为原创,未经授权禁止转载、二次上传。 若您喜欢本文,欢迎微信扫描下方赞赏码投喂作者(注:投喂了她也还是会咕,请务必谨慎) 赞赏作者
Comments
Write a Comment