Why are objects that are drawn on a TCanvas* not persistent if they are not a pointer? Please run the attached script to see the effect. Is there any way to make the the second TLatex object persistent?
If an object is declared on the stack (i.e. is not a pointer) by definition of C++, they are destructed when they go out of scope and thus does not survive past the end of the function.