0

I'm Looking to build a bubble map of Europe that contains agricultural data. Each row has a bunch of data segmented by country, and coordinates that coincide with the data.

My plot looks like the code below, and I can't manage to get all of my datapoints to show up. The one that does, isn't in the expected place (longitude and latitude issue).

How can I make all of the data points from the dataframe appear on the map? Should this be a GeoPands (new word for me) Dataframe?

Thank you!

I tried the code below, and couldn't get it to match properly to the map. It only showed one data point and it was in the wrong location

central_lon, central_lat = -5, 55
extent = [-20, 30, 30, 60]

plt.figure()
ax = plt.axes(projection=ccrs.Orthographic(central_lon, central_lat))

plt.scatter(df['CapitalLongitude'], df['CapitalLatitude'])
print(df['CapitalLongitude'], df['CapitalLatitude'])

ax.set_extent(extent)
ax.coastlines(resolution='50m')
ax.add_feature(cartopy.feature.BORDERS)

plt.show()

0 Answers0