Untitled

 avatar
unknown
plain_text
a year ago
609 B
3
Indexable
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap

# Create a Basemap instance centered on India
map = Basemap(llcrnrlon=67, llcrnrlat=6, urcrnrlon=99, urcrnrlat=36, projection='merc')

# Draw coastlines, countries, and states
map.drawcoastlines()
map.drawcountries()
map.drawstates()

# Draw parallels and meridians (latitudes and longitudes)
map.drawparallels(range(0, 41, 5), labels=[1, 0, 0, 0])
map.drawmeridians(range(60, 101, 10), labels=[0, 0, 0, 1])

# Fill the land with a color
map.fillcontinents(color='lightgreen', lake_color='aqua')

# Add a title
plt.title('India Map')

Editor is loading...
Leave a Comment