Update a TCanvas

Dear All,

I know this might be a stupid question, but, how do I update a TCanvas when the TGraph in it was updated?
I notice that by clicking on it, it will update itself automatically.
But how do I do that in the code?

Thanks

From memory:

gPad->Modified();
gPad->Update();

here’s a retroactive reference for more information:
http://root.cern.ch/download/doc/Graphics.html#updating-the-pad

Jean-François

Ah, it’s the pad Update, not the canvas Update.

Thanks,