gPad outside CINT

I am converting a root plotting macro to be intergrated into a c++ program, and I am trying to change the color palette. In the macro I need to do gPad->Update() for the plott to actually be shown with the new color palette, but outside CINT the gPad object does not exist by default. How can I solve this such that my choosen color palette is used?

Huh? It is defined in TVirtualPad.h with gets included by e.g. TPad.h.

Yes it exists … see for example $ROOTSYS/test/stressGraphics.cxx

Thanks a lot, I now found a solution :slight_smile: