# Plotting graph with X axis as time axis and Y axis showing kilometeres

**URL:** <https://forum.generic-mapping-tools.org/t/plotting-graph-with-x-axis-as-time-axis-and-y-axis-showing-kilometeres/4991>\
**Category:** Q&A\
**Tags:** gmt\
**Created:** [June 14, 2024, 9:08pm UTC](https://forum.generic-mapping-tools.org/t/plotting-graph-with-x-axis-as-time-axis-and-y-axis-showing-kilometeres/4991 "2024-06-14T21:08:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pwr-student125](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwr-student125/32/4281_2.png) [@pwr-student125](https://forum.generic-mapping-tools.org/u/pwr-student125)\
**Post date:** [June 14, 2024, 9:08pm UTC](https://forum.generic-mapping-tools.org/t/plotting-graph-with-x-axis-as-time-axis-and-y-axis-showing-kilometeres/4991/1 "2024-06-14T21:08:43Z")

</div>

Hello,  
I have txt file in formated like this:  
11:10 123  
11:11 125  
11:12 127  
11:13 129  
in which first column contains time (hh:mm) and second column contains width in kilometers.  
How can I plot it so my X axis will show time in hh:mm format and not in degrees and minute (ex. 11°30’E).

PS  
Really sorry for my bad english

---

<div class="post-metadata">

**Author:** ![ZMAlt](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/zmalt/32/4912_2.png) [@ZMAlt](https://forum.generic-mapping-tools.org/u/ZMAlt)\
**Post date:** [June 17, 2024, 1:18am UTC](https://forum.generic-mapping-tools.org/t/plotting-graph-with-x-axis-as-time-axis-and-y-axis-showing-kilometeres/4991/2 "2024-06-17T01:18:41Z")

</div>

Hi, @pwr-student125

Try to use Date/Time format in -R option to make GMT understand your first column is time. Like this

```auto
-R0T11:10:00/0T11:13:00/123/129

```
