# How to create map plots with my own values? GMT Version 6.1.0 \[64-bit\]

**URL:** <https://forum.generic-mapping-tools.org/t/how-to-create-map-plots-with-my-own-values-gmt-version-6-1-0-64-bit/1799>\
**Category:** Q&A\
**Tags:** gmt\
**Created:** [June 16, 2021, 3:16pm UTC](https://forum.generic-mapping-tools.org/t/how-to-create-map-plots-with-my-own-values-gmt-version-6-1-0-64-bit/1799 "2021-06-16T15:16:00Z")\
**Posts on this page:** 5\
**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:** [June 16, 2021, 3:16pm UTC](https://forum.generic-mapping-tools.org/t/how-to-create-map-plots-with-my-own-values-gmt-version-6-1-0-64-bit/1799/1 "2021-06-16T15:16:00Z")

</div>

![Screenshot (1965)](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/d/db2630f7265821ac4239546f5f15b33cd380ad45.png)

Hello!  
I am new to GMT and I am only aware of how to import external files for different color gradients in a map.

But, I want to import my values and display them in color gradients for a different latitude and longitude. Can you please help me to create similiar plots as in image?

---

<div class="post-metadata">

**Author:** ![andrebelem](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/andrebelem/32/1218_2.png) [@andrebelem](https://forum.generic-mapping-tools.org/u/andrebelem)\
**Post date:** [June 16, 2021, 4:05pm UTC](https://forum.generic-mapping-tools.org/t/how-to-create-map-plots-with-my-own-values-gmt-version-6-1-0-64-bit/1799/2 "2021-06-16T16:05:21Z")

</div>

Hey @Sujata, can you elaborate a little more ?  
If I understood, you have an external file with your own data (in a gird format ? or XYZ triplets ?).

Depending of your answer there are different solutions.  
Basically you have to turn your points into a grid (x = longitude, y = latitude and z = your data) and use grdimage or grdcontour. But deciding what to do first depends on what kind of data you have.

---

<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:** [June 16, 2021, 4:48pm UTC](https://forum.generic-mapping-tools.org/t/how-to-create-map-plots-with-my-own-values-gmt-version-6-1-0-64-bit/1799/3 "2021-06-16T16:48:03Z")

</div>

Hello Andre  
Thank you for your answer.

Exactly, I have Latitude, longitude, and error data.

 ![Screenshot (1966)](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/c/cf96cba4f4793957c2addc3d03e1a7564cb0b259.png)

---

<div class="post-metadata">

**Author:** ![andrebelem](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/andrebelem/32/1218_2.png) [@andrebelem](https://forum.generic-mapping-tools.org/u/andrebelem)\
**Post date:** [June 16, 2021, 5:58pm UTC](https://forum.generic-mapping-tools.org/t/how-to-create-map-plots-with-my-own-values-gmt-version-6-1-0-64-bit/1799/4 "2021-06-16T17:58:11Z")

</div>

You have to use xyz2grd.  
Check out this example here [https://fossies.org/dox/gmt-6.1.0-src/md\_doc\_release\_html\_\_sources\_xyz2grd\_8rst.html](https://fossies.org/dox/gmt-6.1.0-src/md_doc_release_html__sources_xyz2grd_8rst.html) (jump to Examples on the bottom of the page).

Note that you should have an idea beforehand about the spatial distribution of your data, as the grid spacing argument will profoundly interfere with your interpolation (in terms of quality).

You can also use psxy to at least plot this distribution. Large spaces between data will return bad grids. Ideally, you should also prepare your file to contain longitude, latitude, error (in that order) as it will be interpreted as x = longitude, y = latitude, z = your data, so you can build an efficient grid.

I also recommend you explore some solutions in the tutorials here [http://gmt-tutorials.org/en/](http://gmt-tutorials.org/en/)

cheers

---

<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:** [June 16, 2021, 10:04pm UTC](https://forum.generic-mapping-tools.org/t/how-to-create-map-plots-with-my-own-values-gmt-version-6-1-0-64-bit/1799/5 "2021-06-16T22:04:46Z")

</div>

Okay, Thank you very much, Andre!
