Re: [ROOT] LineWidth : in 'pixels' ?

From: Patois Yannick (patois@ganil.fr)
Date: Mon Feb 05 2001 - 20:02:34 MET


On Mon, 5 Feb 2001, Rene Brun wrote:

>    //Width_t lw = Width_t(fH->GetLineWidth()*gPad->GetAbsHNDC() + 0.5); //old
>    Width_t lw = Width_t(fH->GetLineWidth()*gPad->GetWh()/800. + 0.5);   //new

Hi Rene, thanx for your explanations.
I'll left the PSs as they are still un-answered :)

And I have another question:
If I do:
// test2.C
{
  TPaveText *tpvt = new TPaveText(0.1,0.1,0.2,0.2);
  tpvt->SetY2NDC(0.9);
  tpvt->DrawNDC();
}

The pave doesnt acknowledge the SetY2NDC command.
Adding an explicit 'ConvertNDCtoPad changes nothing.

	Yannick

> > PS1: On my system, the previous test break CINT at second invocation
> > (did I made an obvious mistake?):
> >   *   Version   3.00/02   18 January 2001   *
> > root [0] .x test.C
> > (fits vals) OK
> > root [1] .x test.C
> > Warning in <TH1::Build>: Replacing existing histogram: h1
> > (fits val)
> >  *** Break *** segmentation violation
> > 
> > PS2: The HTML presentation of the class is very useful and clever,
> > nicely presented, full of coments and hyperlinks, but why cant it be the
> > same for the .h files ? If I have the bad luck to seek for informations
> > related to an inline method, I'm send to an ugly looking file without
> > any fontification, neither comments or help of any kind. Is there a good
> > reason for it ?
> 



This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:51:02 MEST