# Issue with TEllipse

**URL:** <https://root-forum.cern.ch/t/issue-with-tellipse/39910>\
**Category:** Newbie\
**Created:** [June 14, 2020, 8:55pm UTC](https://root-forum.cern.ch/t/issue-with-tellipse/39910 "2020-06-14T20:55:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaueEvangelista](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/13edae/32.png) [@CaueEvangelista](https://root-forum.cern.ch/u/CaueEvangelista)\
**Post date:** [June 14, 2020, 8:55pm UTC](https://root-forum.cern.ch/t/issue-with-tellipse/39910/1 "2020-06-14T20:55:44Z")

</div>

_ROOT Version:_ 6.20/04  
_Platform:_ Linux Mint Tricia  
_Compiler:_ g++ 7.5.0

* * *

Hi, everyone!

This is the first time I’m using the TEllipse class and I’m really confused about one thing.

I want to draw a circle around a specific point of a 2D Histogram, let’s say (1,1). I’m setting the radius of the ellipse to be equal, but I’m still not getting a circle (I know this is a pretty dumb question, sorry)

This is the piece of my code where I try to draw the circle:

```auto
		//ellipse with (1,1) center and r1 = 1 and r2 = 1
		TEllipse *circle = new TEllipse(1.,1.,1.,1.);

		circle->SetFillStyle(0);
		circle->SetLineColor(kRed);
		circle->SetLineStyle(kDashed);
		circle->SetLineWidth(2);

		circle->Draw();

```

I want to create a circle with radius r=1 around the point (1,1), but this is what I get:

 ![ellipse](https://root-forum.cern.ch/uploads/default/original/3X/8/c/8c837f4920296015615a638d6698a5ab9d41c9c3.png)

Once more: my apologies for the super simple question.

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [June 15, 2020, 5:05am UTC](https://root-forum.cern.ch/t/issue-with-tellipse/39910/2 "2020-06-15T05:05:23Z")

</div>

It is a circle, see the scales of the x and y axes.

---

<div class="post-metadata">

**Author:** ![CaueEvangelista](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/13edae/32.png) [@CaueEvangelista](https://root-forum.cern.ch/u/CaueEvangelista)\
**Post date:** [June 15, 2020, 3:02pm UTC](https://root-forum.cern.ch/t/issue-with-tellipse/39910/3 "2020-06-15T15:02:16Z")

</div>

Wow, thank you (now I’m embarrassed)!!!

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [June 22, 2020, 12:36pm UTC](https://root-forum.cern.ch/t/issue-with-tellipse/39910/4 "2020-06-22T12:36:04Z")

</div>

Make your canvas square and it will show as a circle.

---

<div class="post-metadata">

**Author:** ![CaueEvangelista](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/13edae/32.png) [@CaueEvangelista](https://root-forum.cern.ch/u/CaueEvangelista)\
**Post date:** [July 12, 2020, 1:57pm UTC](https://root-forum.cern.ch/t/issue-with-tellipse/39910/5 "2020-07-12T13:57:11Z")

</div>

Thank you, dastudillo and couet, the circles now look like circles!
