What's the graph option for this kind of graph?

Hi,

I am trying to reproduce some program on my own computer, but I don’t know how to draw this kind of graph. Could you show me some example of this kind of graph?
hER1g.pdf (13.3 KB)

http://root.cern.ch/root/html/THistPainter.html
http://root.cern.ch/root/html/TGraphPainter.html
http://root.cern.ch/root/html/TGraph2D.html
http://root.cern.ch/root/html/TGraph2DErrors.html

I believe your picture shows a 2-D histogram:
root.cern.ch/root/html/TH2.html
created with something like:
TH2D *hER1g = new TH2D(“hER1g”, “Ring1 vs E calib gated”, 500, 0.0, 50.0, 17, 0.0, 17.0);
then filled and finally drawn with something like:
gROOT->SetStyle(“Plain”);
gStyle->SetPalette(1, 0);
gStyle->SetStatStyle(0);
gStyle->SetStatBorderSize(0);
gStyle->SetOptStat(“neMi”);
hER1g->Draw(“COL”);

http://root.cern.ch/root/html/TStyle.html

That works. Thx a lot. :smiley:

[quote=“Pepe Le Pew”]http://root.cern.ch/root/html/THistPainter.html
http://root.cern.ch/root/html/TGraphPainter.html
http://root.cern.ch/root/html/TGraph2D.html
http://root.cern.ch/root/html/TGraph2DErrors.html

I believe your picture shows a 2-D histogram:
root.cern.ch/root/html/TH2.html
created with something like:
TH2D *hER1g = new TH2D(“hER1g”, “Ring1 vs E calib gated”, 500, 0.0, 50.0, 17, 0.0, 17.0);
then filled and finally drawn with something like:
gROOT->SetStyle(“Plain”);
gStyle->SetPalette(1, 0);
gStyle->SetStatStyle(0);
gStyle->SetStatBorderSize(0);
gStyle->SetOptStat(“neMi”);
hER1g->Draw(“COL”);

http://root.cern.ch/root/html/TStyle.html[/quote]