# Plotting data using the real time

**URL:** <https://root-forum.cern.ch/t/plotting-data-using-the-real-time/34789>\
**Category:** Newbie\
**Created:** [June 24, 2019, 2:27pm UTC](https://root-forum.cern.ch/t/plotting-data-using-the-real-time/34789 "2019-06-24T14:27:38Z")\
**Posts on this page:** 2\
**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:** [June 24, 2019, 2:27pm UTC](https://root-forum.cern.ch/t/plotting-data-using-the-real-time/34789/1 "2019-06-24T14:27:39Z")

</div>

Hello Everyone

I would like to display the following data [19-05-22\_2246.zip](https://root-forum.cern.ch/uploads/default/original/3X/a/c/ac48487f8f95170d3783394d5d9a1ac9f436466f.zip) (2.1 MB)  
using the actual real-time on the data, currently, it is plotting using the seconds. How can i achieve that ?

thank you in advance

---

<div class="post-metadata">

**Author:** ![Dilicus](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dilicus/32/14338_2.png) [@Dilicus](https://root-forum.cern.ch/u/Dilicus)\
**Post date:** [June 24, 2019, 2:57pm UTC](https://root-forum.cern.ch/t/plotting-data-using-the-real-time/34789/2 "2019-06-24T14:57:21Z")

</div>

Hi,  
look here [TGaxis::TimeAxis](https://root.cern.ch/doc/master/classTGaxis.html#GA14).  
You have to set the timeset axis on  
`h->GetXaxis()->SetTimeDisplay(1);`  
and then choose the time format you prefer.

Cheers,  
Stefano
