How to Make Scatter Plot with Log Axis on Y-Axis

Hi,

there are some typos in the code such as missing “;” and usage of . instead of ->.
In any case the point here is that you need to draw the graph and not the canvas and then change to log scale.
Here you see the working exmple

Int_t n = 11000; //The length of my arrays.
TGraph *g = new TGraph(n);
g->SetPoint(0,1,1);
g->SetPoint(1,10,10);
g->SetPoint(2,100,100);
//....
TCanvas *c1 = new TCanvas("My plot","Tree Canvas");
g->Draw();
c1->SetLogy();

D