LoginSignup
0
1

More than 3 years have passed since last update.

root (cern) のヒストグラムの色

Last updated at Posted at 2019-09-09

rootのヒストグラムの色の引数の数字なんてわかんねえ!!てなことで

h1->SetLineColor(2);

  (1)、赤(2)、黄緑(3)、青(4)、黄(5)、桃(6)、水色(7)、緑(8)、群青(9)
    透明(10)、アイボリー(11)、灰色(12)、その後だんだん薄く 

配色のセンスが悪いと罵倒の嵐である、おそろし


動くわけではないrootプログラム

TCanvas *c1;

void halo
{
   TH1F *h1 = new TH1F("h1", ";ADC count;count", nbin, 0, 256);

      h1->Fill(xx, yy);
   c1 = new TCanvas("c1", "c1", 1200, 800);


   h1->Draw("hist");
   h1->SetXTitle("ADC ");
   h1->SetYTitle("Counts ");
   h1->SetTitle("AAA ");
   h1->SetLineWidth(2);
//色シリーズ
   h1->SetLineColor(2);
   h1->SetMarkerColor(2);
   h1->SetMarkerStyle(22);


(1)、赤(2)、黄緑(3)、青(4)、黄(5)、桃(6)、水色(7)、緑(8)、群青(9)
    透明(10)、アイボリー(11)、灰色(12)、その後だんだん薄く 

}   
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1