「所谓“这就是生活”,大概是每个人都会辜负一些人,会看到一些希望,会有幸福,会有悲伤,会得偿所愿,也会留下窟窿。喜怒哀乐间,继续向前走,走向彼此共同的终点。」——指纹 古川政良。腐女子。中国嗑学院津港分院风水八卦研究所延毕博士生。 重生 / 白夜追凶 / 刀锋上的救赎 / given / 花归葬 / IDOLiSH7 / 海猫鸣泣之时。

写给金鱼脑的自己用的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