Re: line width in a divided canvas

From: OKUMURA, Akira <oxon_at_ceres.phys.s.u-tokyo.ac.jp>
Date: Thu, 18 Jun 2009 15:30:30 +0900


Hello Rene,

Thank you so much. It works fine, but as you mentioned it does not affect on PDF files. I can convert a PS file to a PDF manually in just a few seconds, and hence SetLineScalePS is good enough for me.

If this feature could be easily implemented in the PDF I/O of ROOT, it would be nice. But its priority seems to be low.

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

On 2009/06/18, at 15:12, Rene Brun wrote:

> 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:30:42 CEST

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