# Display the vertex in RooEllipse

**URL:** <https://root-forum.cern.ch/t/display-the-vertex-in-rooellipse/47803>\
**Category:** Newbie\
**Created:** [November 24, 2021, 6:26am UTC](https://root-forum.cern.ch/t/display-the-vertex-in-rooellipse/47803 "2021-11-24T06:26:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dennis\_Arogancia](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dennis_arogancia/32/25935_2.png) [@Dennis\_Arogancia](https://root-forum.cern.ch/u/Dennis_Arogancia)\
**Post date:** [November 24, 2021, 6:26am UTC](https://root-forum.cern.ch/t/display-the-vertex-in-rooellipse/47803/1 "2021-11-24T06:26:48Z")

</div>

Hi,

I’m trying to plot an ellipse using RooEllipse and I want the vertex to plotted as well:

RooEllipse \*el = new RooEllipse("",0.0039,-0.0002,0.0033,0.0036,0.13,100);  
el-\>Draw();

Is it possible to display the vertex of this ellipse? A marker at (0.0039,-0.0002)  
Any help is highly appreciated.

Thanks,

Dennis

\_ROOT Version: 6.20.06  
\_Platform: Ubuntu 18.04  
\_Compiler:

* * *

---

<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:** [November 24, 2021, 7:41am UTC](https://root-forum.cern.ch/t/display-the-vertex-in-rooellipse/47803/2 "2021-11-24T07:41:51Z")

</div>

[RooEllipse](https://root.cern/doc/master/classRooEllipse.html) is a TGraph so the option “P” in te [Draw](https://root.cern/doc/master/classTGraph.html#a7ee6d3572ef075dd4fa1a6deb939a986) directive will plot markers.

---

<div class="post-metadata">

**Author:** ![Dennis\_Arogancia](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dennis_arogancia/32/25935_2.png) [@Dennis\_Arogancia](https://root-forum.cern.ch/u/Dennis_Arogancia)\
**Post date:** [November 24, 2021, 11:24am UTC](https://root-forum.cern.ch/t/display-the-vertex-in-rooellipse/47803/3 "2021-11-24T11:24:50Z")

</div>

Thank you very much for your help @couet,

The markers are displayed now. But I want also to display the point at the center (0.0039,-0.0002) of the ellipse. This center marker is need because it is my reference for the uncertainty values. Is there a workaround on this?

Thanks again,

Dennis

---

<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:** [November 24, 2021, 11:41am UTC](https://root-forum.cern.ch/t/display-the-vertex-in-rooellipse/47803/4 "2021-11-24T11:41:47Z")

</div>

The ellipse center is not part to the graph data points. To display it you will need to draw a [TMarker](https://root.cern/doc/master/classTMarker.html) at the center coordinates.

---

<div class="post-metadata">

**Author:** ![Dennis\_Arogancia](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dennis_arogancia/32/25935_2.png) [@Dennis\_Arogancia](https://root-forum.cern.ch/u/Dennis_Arogancia)\
**Post date:** [November 24, 2021, 12:15pm UTC](https://root-forum.cern.ch/t/display-the-vertex-in-rooellipse/47803/5 "2021-11-24T12:15:05Z")

</div>

Many thanks for your help @couet. It works fine now.

Sincerely,

Dennis
