Hi Stelious,
Can you send me a little macro using your function FitGauss2 showing your
problem ? I have tried :
{
TCanvas *c = new TCanvas("c","example",0,0,700,600);
c->Divide(1,2);
TFile f("hsimple.root");
c->cd(1);
hpx->Draw();
c->cd(2);
hpx->Draw();
FitGauss2(hpx,-1,1);
}
But, with that, I do not get what you describe in your email.
By the way, what you are describing here sounds logical. Seems to me it
doesn't make sense to start a primitive in some coordinates system and
finish it in an other one. I think what you see can be reproduced the
following way:
- Create a pad divided in two sub-pads.
- Activate View/ToolBar
- Create an arrow in one of the sub-pad: it is fine
- Create an arrow (or a line) starting in one sub-pad and finishing in the
other one: it will not be accepted
Cheers, Olivier
On Tue, 31 Aug 2004, Stilianos Kesisoglou wrote:
> Hi,
>
> I am having a small problem using the WaitPrimitive() method.
>
> I've made a function that uses WaitPrimitive() to get input from the mouse
> (essentially choosing by hand a graph by selecting points on the canvas).
>
> The function works fine when it's used in a single canvas, but if I divide
> the
> canvas lets say in 2 areas and then use the macro in one of them, when I go
> to the second area it "remembers" the last point taken on the first area.
>
> Do I have to call any method to "clear" things up before the second usage?
>
> I am attaching the macro in the file "fnc.C". It's usage is:
>
> FitGauss2(hist,xMin,xMax);
>
> where hist a TH1F pointer and xMin, xMax the limits within which points are
> selected.
>
> Thanks!
>
> Stelios.
>
>
>
>
--
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:09 MET