# GMT plot

**URL:** <https://forum.generic-mapping-tools.org/t/gmt-plot/2442>\
**Category:** Q&A\
**Created:** [December 14, 2021, 11:45am UTC](https://forum.generic-mapping-tools.org/t/gmt-plot/2442 "2021-12-14T11:45:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sujata](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/sujata/32/1906_2.png) [@Sujata](https://forum.generic-mapping-tools.org/u/Sujata)\
**Post date:** [December 14, 2021, 11:45am UTC](https://forum.generic-mapping-tools.org/t/gmt-plot/2442/1 "2021-12-14T11:45:28Z")

</div>

I want to mark certain locations (lat and long in a .txt file) on a world map with symbols. I am using the following code.

But I am not getting the desired results. Can you please resolve this issue?

* * *

#!/bin/bash

gmt begin world png

gmt coast -Rg -JK180/22c -B45g30 -Gwheat -Slightblue -A1000 -Y7c

gmt plot -C -Sci -Wfaint -hi1 world\_1.txt

gmt end

* * *

world.txt contains longitude and latitude of marking.

|77.50|8.20|  
|83.50|17.20|  
|71.50|20.20||  
|80.50|20.20|

---

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.generic-mapping-tools.org/u/Andreas)\
**Post date:** [December 14, 2021, 12:44pm UTC](https://forum.generic-mapping-tools.org/t/gmt-plot/2442/2 "2021-12-14T12:44:47Z")

</div>

- `world.txt` has `|` as field separator. GMT does not recognize that. use space or comma.
- In your script your file is named `world_1.txt`. Should it be `world.txt`?
- No _size_ is given in `-Sci`. Try `-Sc.1c`
- No CPT is given in `-C` - remove it.
- `-hi1` means your input file has 1 header line (I think). Does it? If not, remove it.

---

<div class="post-metadata">

**Author:** ![Sujata](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/sujata/32/1906_2.png) [@Sujata](https://forum.generic-mapping-tools.org/u/Sujata)\
**Post date:** [December 15, 2021, 11:49am UTC](https://forum.generic-mapping-tools.org/t/gmt-plot/2442/3 "2021-12-15T11:49:38Z")

</div>

Thank you Andreas.
