I'm using a default map like:
world = geopandas.read_file(gpd.datasets.get_path('naturalearth_lowres'))
I can successfully annotate labels to this map from another GeoDataFrame (called sample_gdf here) with the following for loop sample:
for idx, row in sample_gdf.iterrows():
plt.annotate(text=row['country_name'], # e.g. this column contains the names of each countries
xy=(row['longitude'], row['latitude']), # e.g. these columns are showing the coordinates of middle points of each countries
horizontalalignment='center')
This is how it looks like with epsg=4326 Problems are starting when I want to change the projection of the map. Default CRS for the variable 'world' above is epsg: 4326. As soon as I change the projection like this:
world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
world = world.to_crs(epsg=3035)
focusing on Europe, my labels are not appearing in the correct locations anymore. I've been looking for suggestions to solve this problem for a week, but couldn't find any solution for now. Thanks for your help. And this is how it looks like with epsg=3035 Labels are appearing in the left lower corner.