Hi Manoj,
You created a circle (with an ellipse having its 2 radius equal). But the pad coordinates along X and Y axis are not "normalized" because your TCanvas is not square. With a square canvas it looks like a circle. Draw some axis and you will understand better.
Olivier
On Tue, 11 Jan 2005, Manoj Kumar Jha wrote:
> Hi Oliver,
> Thanks for mail. I tried the following script. But, the figure looks
> like ellipse. Should I assume it is a circle ? I am attaching the script
> as well as the figure . Please let me know.
>
> With regards,
> manoj
>
>
> On Tue, 2005-01-11 at 21:39, Olivier Couet wrote:
> > Try:
> >
> > {
> > c1 = new TCanvas("c1","c1",0,0,500,500);
> > c1->Range(0,0,1,1);
> > TPaveLabel pel(0.1,0.8,0.9,0.95,"Examples of Circle");
> > pel.SetFillColor(42);
> > pel.Draw();
> > TEllipse el1(0.5,0.5,.2,.2);
> > el1.Draw();
> > }
> >
> > Olivier
> >
> > On Tue, 11 Jan 2005, Manoj Kumar Jha wrote:
> >
> > > Dear rooters,
> > > I am trying to draw a circle using the attached script. But, I am
> > > getting an ellipse (the figure is attached). Could you please let me
> > > know where I am committing the mistake ?
> > >
> > > Thanks,
> > > manoj
> > >
>
-- Org: CERN - European Laboratory for Particle Physics. Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910 E-Mail: Olivier.Couet_at_cern.ch Phone: +41 22 7676522 WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22 7677155Received on Tue Jan 11 2005 - 17:26:46 MET
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET