Hi there! I’ve been trying to generate a plot with the odot symbol in it.
The template I use for the plot in C++ is:
gROOT->Reset();
TStyle *pdStyle= new TStyle("MyStyle","My style");
pdStyle->SetFrameBorderMode(0);
pdStyle->SetCanvasBorderMode(0);
pdStyle->SetPadBorderMode(0);
pdStyle->SetPadColor(0);
pdStyle->SetCanvasColor(0);
pdStyle->SetStatColor(0);
pdStyle->SetPaperSize(20,26);
pdStyle->SetPadTopMargin(0.11);
pdStyle->SetPadRightMargin(0.05);
pdStyle->SetPadBottomMargin(0.16);
pdStyle->SetPadLeftMargin(0.12);
pdStyle->SetTextSize(0.034);
pdStyle->SetLabelSize(0.03,"x");
pdStyle->SetTitleSize(0.04,"x");
pdStyle->SetLabelSize(0.03,"y");
pdStyle->SetTitleSize(0.04,"y");
pdStyle->SetLabelSize(0.03,"z");
pdStyle->SetTitleSize(0.03,"z");
pdStyle->SetTitleOffset(1.2,"x");
pdStyle->SetTitleOffset(1.5,"y");
pdStyle->SetHistLineWidth(1);
pdStyle->SetLineStyleString(2,"[12 12]");
pdStyle->SetErrorX(0.001);
pdStyle->SetOptTitle(1);
pdStyle->SetOptStat(0);
pdStyle->SetOptFit(1);
pdStyle->SetStatFontSize(0.02);
pdStyle->SetPadTickX(1);
pdStyle->SetPadTickY(1);
pdStyle->SetLineWidth(1);
gROOT->SetStyle("MyStyle");
The, I add a TLatex to the canvas:
TCanvas* c1=new TCanvas("c1","c1",430,400);
[...]
TLatex *tTitle7 = new TLatex( 125, 6.5e-8, "#color[6]{bkg_{#scale[1.4]{#odot}}}");
tTitle7->SetTextSize(0.033);
tTitle7->Draw();
The problem with this TLatex is that the odot seems a bit weird, not as a circle but as some kind of amorphous body (see flux300right.pdf ) Is there a way to correct it?
Thanks in advance!
M.
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided