Switching to and fro: multiple canvases

Hi Wile,
I present a similar inquiry that I have posted in the url below

https://root-forum.cern.ch/t/tgraph2d-setpoint-problems-inside-a-non-for-loop/15419/1

If I follow the example (for-loop inside a for loop) as you propose, i encounter busyflag error as far as my needs , well described in the link above…

for (j = 0; j < 100; j++) {
    l = new TPolyLine3D(n);
    for (i = 0; i < n; i++) {
      x = 2.0 * gRandom->Rndm();
      y = 2.0 * gRandom->Rndm();
      z = 2.0 * gRandom->Rndm();
      l->SetPoint(i, x, y, z);
    } 
    l->Draw();

So any suggestion is appreciated.