Increase division of colour bar in TGraph2D

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;"prob_2d.dat");
	int a=0;
	for(int i=0;i<100;i++)
		for(int j=0;j<100;j++)

The questions are:

  1. How can I increase the divisions in the colour bar?
  2. 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 :slight_smile:
prob_2d.dat (218 KB)

should be fine…

see: … or-palette

Thanks a lot ! :slight_smile: