Countours in Tgraph2D

Hi
I am using a Tgraph2D to produce a 2D contours plot. I would like to know how I can set the contours levels. what I found so far is

con->SetContour(5);
con->SetContourLevel(0,0.3);
con->SetContourLevel(1,0.1);
con->SetContourLevel(2,0.01);
con->SetContourLevel(3,0.001);
con->SetContourLevel(4,0.0001);

however this seems to work only for histograms and not for graphs?
any ideas?
thanks a lot
best regards
florian

Hi Florian,

if your points are on a grid, you can also use TH2. I don’t think TGraph2D supports contours (experts, please correct me if I am wrong).

Best,

Jens