# Ploting the data from a txt file

**URL:** <https://root-forum.cern.ch/t/ploting-the-data-from-a-txt-file/34238>\
**Category:** Newbie\
**Created:** [May 24, 2019, 10:02am UTC](https://root-forum.cern.ch/t/ploting-the-data-from-a-txt-file/34238 "2019-05-24T10:02:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thabo\_Lepota](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@Thabo\_Lepota](https://root-forum.cern.ch/u/Thabo_Lepota)\
**Post date:** [May 24, 2019, 10:02am UTC](https://root-forum.cern.ch/t/ploting-the-data-from-a-txt-file/34238/1 "2019-05-24T10:02:23Z")

</div>

Hello everyone,

Can you please assist me in plotting a graphs for the first column against each column from the following text file [19-05-10.txt](https://root-forum.cern.ch/uploads/default/original/3X/6/f/6fee7eafff30dfc0a00bebf104334538bc6926e3.txt) (1.1 MB)  
i’m not sure if it is histogram or ntuple

thank you 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:** [May 24, 2019, 10:14am UTC](https://root-forum.cern.ch/t/ploting-the-data-from-a-txt-file/34238/2 "2019-05-24T10:14:28Z")

</div>

It looks like more a ntuple given the number of columns you have.

---

<div class="post-metadata">

**Author:** ![Thabo\_Lepota](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@Thabo\_Lepota](https://root-forum.cern.ch/u/Thabo_Lepota)\
**Post date:** [May 24, 2019, 10:33am UTC](https://root-forum.cern.ch/t/ploting-the-data-from-a-txt-file/34238/3 "2019-05-24T10:33:14Z")

</div>

Can you assist me to create plots, for those ntuples please

---

<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:** [May 24, 2019, 10:54am UTC](https://root-forum.cern.ch/t/ploting-the-data-from-a-txt-file/34238/4 "2019-05-24T10:54:40Z")

</div>

```auto
   auto t = new TTree();
   t->ReadFile("19-05-10.txt","a:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u");
   t->Draw("b:a", "","l");

```

 ![37](https://root-forum.cern.ch/uploads/default/original/3X/4/a/4abc57b2d3d58890c56dd92c6bcc53c02a52c683.jpeg)

---

<div class="post-metadata">

**Author:** ![Thabo\_Lepota](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@Thabo\_Lepota](https://root-forum.cern.ch/u/Thabo_Lepota)\
**Post date:** [May 24, 2019, 11:57am UTC](https://root-forum.cern.ch/t/ploting-the-data-from-a-txt-file/34238/5 "2019-05-24T11:57:52Z")

</div>

Thank you, so much, i’ll do the rest
