I think I inadvertently may have sent my first email to the wrong list. Is roottalk@pcroot.cern.ch different from roottalk@root.cern.ch? In any event, I have been told I should indicate what version I am currently using. I am currently running 3.04/02 for Linux Redhat 7.3 gcc 3.2. I tried installing the truetype fonts by downloading ttf_fonts.tar.gz, unpacking it, and specifying the path to the ttf directory in system.rootrc. It may be that this isn't the correct procedure for getting truetype fonts to work. Matthew Wood On Thu, 6 Feb 2003, Matthew Wood wrote: > Hi. When I try to run the following script it seems that the titles don't > fit properly into the small pads that appear above each histogram. I > originally suspected that this had something to do with not having the > truetype fonts. However, even after downloading these and modifying the > the system.rootrc file to include: > > Unix.*.Root.TTFontPath: $(ROOTSYS)/ttf > > the problem persisted. Is there something else I need to do to get these > fonts to work or is this not a problem with truetype fonts at all? Below > I have attached the script I am using. > > Matthew Wood { gStyle->SetOptStat(0); gStyle->SetLabelSize(0.03,"xyz"); gStyle->SetPadBorderMode(0); gStyle->SetFrameBorderMode(0); gStyle->SetCanvasBorderMode(0); gStyle->SetCanvasColor(0); TH1F *xe10 = new TH1F("","",200,0,40000); TH1F *xe2 = new TH1F("","",150,0,150); TH1F *ne10 = new TH1F("","",200,0,40000); TH1F *ne2 = new TH1F("","",150,0,150); TCanvas *c1 = new TCanvas; c1->Divide(2,2); c1->cd(1); xe2->SetTitle("Number of electrons produced with Xenon Gain 2"); xe2->GetXaxis()->SetTitle("Number of Electrons"); xe2->GetXaxis()->CenterTitle(kTRUE); xe2->GetYaxis()->SetTitle("Number of Events"); xe2->GetYaxis()->CenterTitle(kTRUE); xe2->Draw(); c1->cd(2); xe10->SetTitle("Number of electrons produced with Xenon Gain 10"); xe10->GetXaxis()->SetTitle("Number of Electrons"); xe10->GetXaxis()->CenterTitle(kTRUE); xe10->GetYaxis()->SetTitle("Number of Events"); xe10->GetYaxis()->CenterTitle(kTRUE); xe10->Draw(); c1->cd(3); ne2->SetTitle("Number of electrons produced with Neon Gain 2"); ne2->GetXaxis()->SetTitle("Number of Electrons"); ne2->GetXaxis()->CenterTitle(kTRUE); ne2->GetYaxis()->SetTitle("Number of Events"); ne2->GetYaxis()->CenterTitle(kTRUE); ne2->Draw(); ne2->Draw(); c1->cd(4); ne10->SetTitle("Number of electrons produced with Neon Gain 10"); ne10->GetXaxis()->SetTitle("Number of Electrons"); ne10->GetXaxis()->CenterTitle(kTRUE); ne10->GetYaxis()->SetTitle("Number of Events"); ne10->GetYaxis()->CenterTitle(kTRUE); ne10->Draw(); }
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET