TGRAPH2D - TCANVAS - Plot Help

Howdy!

I’m plotting data for about 10 million points using dt->SetPoint(N*P,x,z,data);

At the beginning I have drawn only for 10Ksh points.
When I execute it for 50K points, the code gets finished running but the plot doesn’t come or if it comes then it has weird x and z unit; along with a surface which is looks like a mesh.

I have defined: new TCanvas(“c”,“Graph2D example”,0,0,1000,500); and SetPalette(1);

I can think it will take time to plot but if it does then the weird plot, I don’t get it.

If you can help me in understanding that will be great.

Thank you!

Can you post an example showing your problem ?