# Plotting a graph

**URL:** <https://root-forum.cern.ch/t/plotting-a-graph/28836>\
**Category:** Evolution Proposals, Apps & Ideas\
**Created:** [April 27, 2018, 6:08am UTC](https://root-forum.cern.ch/t/plotting-a-graph/28836 "2018-04-27T06:08:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TareqAlqam](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/ebca7d/32.png) [@TareqAlqam](https://root-forum.cern.ch/u/TareqAlqam)\
**Post date:** [April 27, 2018, 6:08am UTC](https://root-forum.cern.ch/t/plotting-a-graph/28836/1 "2018-04-27T06:08:03Z")

</div>

Hi ROOTers  
I want to plot a graph (not a histogram) for a set of data from input file. Then I have to apply an algorithm upon the values of y(x).

Thanks in advance

---

<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:** [April 27, 2018, 6:31am UTC](https://root-forum.cern.ch/t/plotting-a-graph/28836/2 "2018-04-27T06:31:29Z")

</div>

TGraph is the class you need. You can have a look at the r[eference guide for TGraph](https://root.cern/doc/master/classTGraph.html).
