# Plotting data on a map in Julia

**URL:** <https://discourse.julialang.org/t/plotting-data-on-a-map-in-julia/4655>\
**Category:** Geo\
**Tags:** question, plotting, data\
**Created:** [July 5, 2017, 6:47am UTC](https://discourse.julialang.org/t/plotting-data-on-a-map-in-julia/4655 "2017-07-05T06:47:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 5, 2017, 6:47am UTC](https://discourse.julialang.org/t/plotting-data-on-a-map-in-julia/4655/1 "2017-07-05T06:47:20Z")

</div>

Is there any way to plot data with latitude/longitude on a map in Julia?

I am used to folium in Python and ggmap in R:

- [https://github.com/python-visualization/folium](https://github.com/python-visualization/folium)
- [https://github.com/dkahle/ggmap](https://github.com/dkahle/ggmap)

but I am trying to eliminate my dependencies on other languages as much as I can.

---

<div class="post-metadata">

**Author:** ![fabiangans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fabiangans/32/2624_2.png) [@fabiangans](https://discourse.julialang.org/u/fabiangans)\
**Post date:** [July 5, 2017, 7:01am UTC](https://discourse.julialang.org/t/plotting-data-on-a-map-in-julia/4655/2 "2017-07-05T07:01:20Z")

</div>

Maybe PlotlyJS works for you if you have point data:

[https://github.com/sglyon/PlotlyJS.jl](https://github.com/sglyon/PlotlyJS.jl)

This can do bubble and point plots on maps. If you have raster data or combined raster/vector data, I think GMT.jl can do everything you ever need, but I never got used to its syntax.

[https://github.com/joa-quim/GMT.jl](https://github.com/joa-quim/GMT.jl)

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 5, 2017, 3:35pm UTC](https://discourse.julialang.org/t/plotting-data-on-a-map-in-julia/4655/3 "2017-07-05T15:35:10Z")

</div>

Thank you @fabiangans, I will take a look at it soon I find time.

---

<div class="post-metadata">

**Author:** ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)\
**Post date:** [July 5, 2017, 4:31pm UTC](https://discourse.julialang.org/t/plotting-data-on-a-map-in-julia/4655/4 "2017-07-05T16:31:23Z")

</div>

Maybe you can do something with the map example in Luxor [http://juliagraphics.github.io/Luxor.jl/latest/examples.html#Maps-1](http://juliagraphics.github.io/Luxor.jl/latest/examples.html#Maps-1)

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 5, 2017, 8:50pm UTC](https://discourse.julialang.org/t/plotting-data-on-a-map-in-julia/4655/5 "2017-07-05T20:50:23Z")

</div>

Thank you @lobingera, I will take a look at it. Though I don’t think Luxor is the way to go for plotting spatial data. I am looking forward to see what the Julia community will develop.

---

<div class="post-metadata">

**Author:** ![yeesian](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yeesian/32/652_2.png) [@yeesian](https://discourse.julialang.org/u/yeesian)\
**Post date:** [July 6, 2017, 2:42am UTC](https://discourse.julialang.org/t/plotting-data-on-a-map-in-julia/4655/6 "2017-07-06T02:42:40Z")

</div>

I’m not sure much has changed since [Package for map visualizations?](https://discourse.julialang.org/t/package-for-map-visualizations/1875).

I have some preliminary code for a [LeafletJS wrapper](https://github.com/yeesian/LeafletJS.jl), but am not ready to publish it yet, and don’t have the time to work on it in the immediate future. Here’s an [example notebook](http://nbviewer.jupyter.org/github/yeesian/LeafletExamples.jl/blob/master/notebook/leaflet-providers.ipynb) based on an outdated version. It’ll be great if anyone wishes to take it from here to develop them into more polished packages.

That said, I don’t see why Luxor can’t be the way to go for plotting spatial data.

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 6, 2017, 3:14am UTC](https://discourse.julialang.org/t/plotting-data-on-a-map-in-julia/4655/7 "2017-07-06T03:14:46Z")

</div>

Aweseom @yeesian, thanks for your work and thanks for sharing the links, I will definitely keep an eye on your project, the notebook shows great features already.

---

<div class="post-metadata">

**Author:** ![ig-or](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ig-or/32/4975_2.png) [@ig-or](https://discourse.julialang.org/u/ig-or)\
**Post date:** [May 2, 2018, 6:08pm UTC](https://discourse.julialang.org/t/plotting-data-on-a-map-in-julia/4655/8 "2018-05-02T18:08:09Z")

</div>

Also, there was a possibility to draw a lines on a map using QWTwPlot package; you can have a look at  
[https://github.com/ig-or/QWTwPlot.jl/wiki/qwtw-library-features](https://github.com/ig-or/QWTwPlot.jl/wiki/qwtw-library-features)

If this is something what you need, do not hesitate to ask for additional info or new features…

Best regards, Igor

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [June 10, 2021, 2:45pm UTC](https://discourse.julialang.org/t/plotting-data-on-a-map-in-julia/4655/9 "2021-06-10T14:45:40Z")

</div>

We now have a general approach with Makie visualizations directly on the GPU: [[ANN] Announcing Meshes.jl - #33 by juliohm](https://discourse.julialang.org/t/ann-announcing-meshes-jl/53973/33)

Sharing here for future reference. Sorry for reviving the topic.
