Plotting points on a map

Hello all,

I have some points, (longitudes and latitudes) placed in germany/european union. I want to plot them with an underlying outline of the country/countries.

Currently I am using plots with the gr backend, and it would be awesome if I could get using plots it. But any help, using other packages aswell would be very helpfull.

Thanks in advance

I do mine with Luxor

http://juliagraphics.github.io/Luxor.jl/stable/

Here’s the ceiling house price of 1.7m postcodes in England / Wales.

2 Likes

Maps need projections
GMT.jl

2 Likes

Thanks to both of you for the reply. I manged to get a plot using gmt. The code I used is

coast(
    region="0/30/20/60+r", 
    proj=(name=:laea, center=[10,50]), 
    frame=:ag, 
    res=:low,
    area=500, 
    shore=:thin, 
    borders=1,
    
    # outline germany in red
    DCW=((country="DE", 
            pen=(1,:red))),
    figsize=10
)
GMT.scatter!(
    longitudes, latitudes, 
    fmt=:png, 
    marker=:circle,
    markeredgecolor=0, 
    size=0.1, 
    markerfacecolor=:cyan, 
    show=true
)

Does anyone have an idea how to make convert this to a histogram style plot? Colorcoding the amount of points rather than plotting all of them individually?

4 Likes

Try the blockmean module to compute the 2D histogram (use the statistics option) grid and use it like in this bar3D example