「今、天に問い掛ける願い、もうひとふりの力を下さい」 向天再借五百肝是否就能把我手上的坑平掉?←人生疑问 アサルトリリィ / 戦姫絶唱シンフォギア / 津港三部曲 / 花帰葬。
本站共有440篇文章,总计1,651,119字。

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

Plotting

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

  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