There is many examples in the tutorials directory of the ROOT distribution. They also are in the manual. An simple way to learn simple things like that, is to use the TCanvas graphics toolbar thanks to the menu View/Toolbar. Then you create a text by clicking on the L button. Then you save your canvas in a .C file with File/Save -> c1.C and you will get all the commands used to create the graphics you see in a macro (c1.C). That’s a very powerful way to learn the basic graphics objetcs in ROOT. If these hints do not help you send a small example in this forum showing your problem.