python - adding labels to a scatter plot - Stack Overflow from mpl_toolkits.basemap import basemap f, ax = plt.subplots (1,1,figsize= (20,20)) m = basemap (llcrnrlon = 2.4,llcrnrlat =60.11,urcrnrlon=3.3,urcrnrlat=60.91,epsg = 5939, resolution = 'h') lat = df ['latitude '].values lon = df ['longitude'].values wells = df ['well_name'].values x,y = m (lon,lat) for i in range (len (lat)): …