Hey all.
I have a TH2 plot and would like to specify only one point on the histogram,
This is what I tried but point didn’t print on the histogram.
tfile->GetObject("h2_alphabo10", h2_alphabo10);//get histogram from file
h2_alphabo10->Draw("colz");
//create TGraph
//plot on the same canvas
const int n = 1;
Double_t alpha = -0.051;
Double_t board = 40.863;
TGraph *g = new TGraph(n,board,alpha);
g->SetMarkerStyle(21);
g->SetMarkerSize(5);
g->SetMarkerColor(kViolet+2);
g->Draw("Psame");
Thank you. The fill(0.,0.), will it print the histogram on the canvas? And why did you use auto? I am getting the histogram from a file.
So just use TMarker rather than TGraph?