{ TCanvas *c = new TCanvas; TLatex *l = new TLatex(0.5, 0.5, "#font[122]{a = b + c - d #pm e}"); l->Draw(); c->SaveAs("c.eps"); }The font 122 is the greek one. With a such TLatex "a" becomes "alpha", "b" becomes " beta" etc ... It is not the recommended way to do greek characters with TLatex, but it should work anyway.
{ TCanvas *canvas = new TCanvas("c5","c5",900,900); TH1F *histo = new TH1F("Histo","123456x_{i}abcdefy^{2}",100,0,20); canvas->Print("drawing.gif"); }
root : looking for image "filename" in path [/home/username/icons]printed by libAfterImage when using TImage::Open("filename")
{ TCanvas *c1 = new TCanvas("c1","c1",500,500); TLatex l; l.SetTextSize(0.1); l.DrawLatex(0.1,0.6,"#nu#int^{1-x}_{2#pi}"); l.DrawLatex(0.1,0.2,"a#int^{1-x}_{2#pi}"); l.DrawLatex(0.5,0.6,"#nu#sum^{1-x}_{2#pi}"); l.DrawLatex(0.5,0.2,"a#sum^{1-x}_{2#pi}"); }This problem is there since the 1st version of TLatex. It is fixed by:
{ TF1* f = new TF1("f", "exp(x)", 0.467, 2.1345); TGaxis* a = new TGaxis(0.1,0.4,0.9,0.4, "f", 50510, "-"); a->Draw(); TGaxis* b = new TGaxis(0.1,0.7,0.9,0.7, 0.4356, 1.56789, 50510, "-"); b->Draw(); }