Re: line width in a divided canvas

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 18 Jun 2009 08:12:23 +0200


I suggest to use a postscript file instead and proceed like below. the line width does not seem to be implemented for pdf. Olivier please confirm.

Rene Brun

{
 gStyle->SetLineScalePS(0.5);
 TH1* h1 = new TH1D("h1", "h1", 100, -3, 3);  h1->FillRandom("gaus");
 TCanvas* can = new TCanvas("c", "c", 600, 600);  can->Divide(5,5);
 can->cd(1);
 h1->Draw("e");
 can->SaveAs("can.ps");
}

OKUMURA, Akira wrote:
> Hello all,
>
> root [0] TH1* h1 = new TH1D("h1", "h1", 100, -3, 3)
> root [1] h1->FillRandom("gaus")
> root [2] TCanvas* can = new TCanvas("c", "c", 600, 600)
> root [3] can->Divide(5,5)
> root [4] can->cd(1)
> (class TVirtualPad*)0x1841a00
> root [4] h1->Draw("e")
> root [5] can->SaveAs("can.pdf")
> Info in <TCanvas::Print>: pdf file can.pdf has been created
>
> When I divide a canvas into many sub pads, the line width of the
> histogram h1 becomes relatively too thick. As a result, error bars
> overlap each other. How can I set the width smaller than (int) 1 ?
>
> Regards,
>
> OKUMURA, Akira oxon_at_ceres.phys.s.u-tokyo.ac.jp
> Department of Physics, The University of Tokyo
> 7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033
> TEL/FAX +81 3-5841-4173/4059
> Skype : okumura.akira
>
Received on Thu Jun 18 2009 - 08:13:11 CEST

This archive was generated by hypermail 2.2.0 : Thu Jun 18 2009 - 11:50:02 CEST