Hii ROOTers,
I am trying to plot contours/oscillogram using TGraph2D. I have attached the data file. In the file there are three columns : x,y,z. I have plotted contours in xy plane for different values of z. The code is following:
TGraph2D *gr = new TGraph2D();
double prob_calc_diff,E,cos;
ifstream file1;
file1.open("prob_2d.dat");
int a=0;
for(int i=0;i<100;i++)
{
for(int j=0;j<100;j++)
{
file1>>cos>>E>>prob_calc_diff;
gr->SetPoint(a,cos,E,prob_calc_diff);
a++;
}
}
//gStyle->SetPalette(1);
gr->Draw("cont4z");
The questions are:
- How can I increase the divisions in the colour bar?
- In the manual it is written that " This software cannot be guaranteed to work
under all circumstances. It was originally written to work with a few hundred points in an XY space with similar X and Y ranges."
In this case, since the x range(-1 to 0) and y range(1 to 10) are not same, is there any possibility of getting wrong result?
Thanks in advance …
prob_2d.dat (218 KB)