Re: LaTeX symbol \odot

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Mon, 13 Aug 2007 17:43:30 +0200


Hi Robert,

Robert Wagner wrote:
> well, look at this plot:
> http://www.mppmu.mpg.de/~rwagner/tmp/test_odot.eps
> http://www.mppmu.mpg.de/~rwagner/tmp/test_odot.root
>
> if you print it, the odot in the vertical axis' legend is not really
> "nice", or at least not what you expect from vectorial graphics
>

I agree that the symbol is not nice, but unfortunately what I expect from "vectorial graphics" :)
The odot symbol is currently drawn with a circle and this could be improved (Olivier).
I see that line width (by default is set to 2) and some improvement can be obtained in setting the width to 1
and changing the scale. see example below.

Rene brun

{

   TCanvas *test_odot = new TCanvas("test_odot", "test_odot",115,44,672,206);

   test_odot->SetLeftMargin(0.12);   

   TH1 *hframe = new TH1F("hframe","",1000,4,9);

   hframe->SetMinimum(7.7);
   hframe->SetMaximum(9.4);
   hframe->SetStats(0);
   hframe->GetXaxis()->SetLabelSize(0.07);
   hframe->GetXaxis()->SetTitleSize(0.07);
   hframe->GetYaxis()->SetTitle("log(M_{#bullet}/M_{#scale[1.2]{#odot}})");
   hframe->GetYaxis()->SetLabelSize(0.07);
   hframe->GetYaxis()->SetTitleSize(0.07);
   hframe->GetYaxis()->SetTitleOffset(0.6);
   hframe->Draw();

   TLatex *tex = new TLatex(5,8,"log(M_{#bullet}/M_{#odot})");
   tex->SetLineWidth(1);
   tex->SetTextSize(0.07);
   tex->SetTextAngle(90);
   tex->Draw();

   TLatex *tex2 = new TLatex(7,8,"log(M_{#bullet}/M_{#scale[1.2]{#odot}})");
   tex2->SetLineWidth(1);
   tex2->SetTextSize(0.09);
   tex2->SetTextAngle(90);
   tex2->Draw();

}

> Best regards,
> Robert
>
Received on Mon Aug 13 2007 - 17:43:38 CEST

This archive was generated by hypermail 2.2.0 : Tue Aug 14 2007 - 17:50:02 CEST