Hi,
For me it works. I tried the following example:
{
TFile f("hsimple.root");
hpxpy->Draw("cont4");
TMarker *m = new TMarker(1.0, 1.5, 29);
m->Draw();
gPad->SetLogx(kTRUE);
gPad->SetLogy(kTRUE);
}
and I get the attached result
Cheers, Olivier
On Tue, 13 Apr 2004, Jacek M. Holeczek wrote:
> Hi,
>
> I am still looking for a solution ...
> The only thing that works are NDC[0,1] coordinates, I cannot, however,
> find any function to translate "histogram coordinates" into them.
>
> Could you, please, help me,
> Best regards,
> Jacek.
>
> P.S. In the meantime I also checked that gcc-2.95.3 based root does not
> work on RH7.3 ... the 4.00.03 behaves like the gcc-3.2.3 based one,
> the 3.10.02 dies with sigsegv when trying to create the canvas (or
> dividing it into pads, not sure now). Jacek.
>
> On Mon, 12 Apr 2004, Rene Brun wrote:
>
> > Hi Jacek,
> >
> > You must be using a version older than 3.10.
> > Support for log scales for low level primitives like markers and lines
> > was introduced in 3.10 only.
> >
> > Rene Brun
> >
> > On
> > Fri, 9 Apr 2004, Jacek M.
> > Holeczek wrote:
> >
> > > Hi,
> > > I've met the following problem.
> > > I have a TH2F with user specified bins (both in X and Y) which I draw in a
> > > pad :
> > > gPad->SetLogx(1);
> > > gPad->SetLogy(1);
> > > histo->Draw("cont4");
> > > What I get is a correctly drawn histogram and the newly created axes are:
> > > X from 1.0e-1 to 3.0,
> > > Y from 1.0e-5 to 1.0e-3.
> > > Now I would like to Draw a TMarker in the "min" of this histogram (let's
> > > say x=1.0, y=1.0e-4), so I try :
> > > TMarker *m = new TMarker(1.0, 1.0e-4, 29)
> > > m->Draw();
> > > The problem is ... either the marker is not drawn at all or it appears on
> > > a completely crazy position.
> > > If I "Inspect" the marker which is displayed, I get some coordinates, but
> > > I cannot find any function which translates between these coordinate
> > > systems (none of them is NDC[0,1]).
> > >
> > > Could you, please, help me,
> > > Thanks in advance,
> > > Best regards,
> > > Jacek.
> > >
> >
>
>
--
Org: CERN - European Laboratory for Particle Physics.
Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910
E-Mail: Olivier.Couet@cern.ch Phone: +41 22 7676522
WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22 7677155
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET