# How to make interpolated contour plot?

**URL:** <https://discourse.julialang.org/t/how-to-make-interpolated-contour-plot/42616>\
**Category:** General Usage\
**Tags:** plotting, gmt\
**Created:** [July 6, 2020, 3:12pm UTC](https://discourse.julialang.org/t/how-to-make-interpolated-contour-plot/42616 "2020-07-06T15:12:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hafez\_ahmad](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hafez_ahmad/32/14423_2.png) [@hafez\_ahmad](https://discourse.julialang.org/u/hafez_ahmad)\
**Post date:** [July 6, 2020, 3:12pm UTC](https://discourse.julialang.org/t/how-to-make-interpolated-contour-plot/42616/1 "2020-07-06T15:12:24Z")

</div>

I am sorry and I am posting again, I like to make an interpolated contour plot. I have tried and haven’t work. Inverse distance weighting will be preferred interpolation method.  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/7/c71d2d7d5f92eeb0eed430f137af04ee71078559.png)

my data looks like that

```julia
> first(df,5)
> 5×3 DataFrames.DataFrame
> │ Row │ lat │ lon │ elevation │
> │ │ Float64 │ Float64 │ Float64 │
> ├─────┼─────────┼─────────┼─────────┤
> │ 1 │ 26.5068 │ 87.4509 │ 76.2 │
> │ 2 │ 26.4262 │ 87.4618 │ 64.9 │
> │ 3 │ 26.3054 │ 87.478 │ 57.3 │
> │ 4 │ 25.9839 │ 87.521 │ 45.3 │
> │ 5 │ 25.7972 │ 87.5454 │ 40.2 │

```

I did it in python using scipy (interpolation from scipy). I like to do it in pure Julia.

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [July 6, 2020, 3:57pm UTC](https://discourse.julialang.org/t/how-to-make-interpolated-contour-plot/42616/2 "2020-07-06T15:57:35Z")

</div>

You can do it with [GMT.jl](https://github.com/GenericMappingTools/GMT.jl). The module in question is `nearneighbor`
