Plotting Hotspots in Mauritius with Python and Folium

Plotting Hotspots in Mauritius with Python and Folium

geo plotting has never been so easy. thanks dhrumil patel! download the data file here #Import Library import folium import pandas as pd #Load Data data = pd.read_csv(“hotspot.csv”) lat = data[‘Longitude’] lon = data[‘Latitude’] elevation = data[‘Location’] #Create base map map = folium.Map(location=[37.296933,-121.9574983], zoom_start = 5, tiles = “Mapbox bright”) #Plot Markers for lat, lon,… Continue Reading Plotting Hotspots in Mauritius with Python and Folium

matplotlib scatter plot annotate / set text at / label each point

matplotlib scatter plot annotate / set text at / label each point

a hard question in matplotlib is to annotate each point with a text or label. answers range from ax.annotate to some more weird stuffs. fortunately, the answer is a simple one! this question poses itself quite often in scatter plots the key without beating around the bush, the answer is using pyplot.text found here demo code… Continue Reading matplotlib scatter plot annotate / set text at / label each point