「万物皆有裂痕,那是光照进来的地方。」 古川政良的自耕地。 アサリオタクです、ゆゆりり大好き! 观剧笔记,同人创作,生活叨叨。二半夜发病是每个同人女的人生必经之路。 Assault Lily Project / 重生 / 白夜追凶 / 刀锋上的救赎 / 花归葬。

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

Plotting

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