Geting a gridd when using Divide on Canvas

Dear ROOT community,

is it possible (and if yes, how) to get a grid when using Divide on a Canvas?

E.g

```c1 = new TCanvas("c1","c1",200,10,700,500); c1->SetGrid(); c1->Divide(2,2); c1->cd(1); ... add plots ... ```
Doesn’t work. Also placing the `c1->SetGrid();` after the command `c1->cd(1);` doesn’t work.

Is there a possiblilty to get a grid on each of my canvas?

Cheers,
Robert

Hi,
Have you tried calling cd(1) before you setting the grid(1)?
MT

Dear MT,

do you mean:

```c1 = new TCanvas("c1","c1",200,10,700,500); c1->Divide(2,2); c1->cd(1); c1->SetGrid(); ... add plots ...```

Yes, I have. This does not work.

Cheers