see your example modified below
Rene Brun
{
gROOT->Reset();
c1 = new TCanvas("c1");
//compute the pad range to get a fix aspect ratio
Double_t w = gPad->GetWw()*gPad->GetAbsWNDC(); Double_t h = gPad->GetWh()*gPad->GetAbsHNDC(); Double_t xmin = 0; Double_t xmax = 2; Double_t ymin = 0; Double_t ymax = xmax*h/w;
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
> --
> ***************************************************
> Manoj Kumar Jha
> Research Scholar
> Department of Physics & Astrophysics
> University of Delhi | Delhi - 110 007 | India
> Phone : 91-11-27667036(O)
> E-mail: Manoj.Jha_at_cern.ch
> ***************************************************
>
> --------------------------------------------------------------------------------
> Name: try.C
> try.C Type: text/x-c++
> Encoding: 7bit
>
> Name: figure.ps
> figure.ps Type: Postscript Document (application/postscript)
> Encoding: 7bit
Received on Tue Jan 11 2005 - 17:24:39 MET
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET