How to plot latitude and longitude coordinates in basemap











>> YOUR LINK HERE: ___ http://youtube.com/watch?v=XiZbrii49pI

In this video I show you how to plot latitude and longitude co-ordinates using the basemap package in python. • This is part 2 of How to make a map in python using basemap •    • How to make a map in python using bas...   • This video is part of a playlist where I make maps using different pieces of software:    • How to make a map   • Jupyter notebook/ Python 3/ Anaconda 3 • matplotlib markers: https://matplotlib.org/api/markers_ap... • ---------------------------------------------------------------------------------------------------------- • How to plot latitude and longitude co-ordinates in basemap script • from mpl_toolkits.basemap import Basemap • import matplotlib.pyplot as plt • import numpy as np • import pandas as pd • df = pd.read_excel(r'C:\\Python practise\\lat-and-lon.xlsx','Sheet1') • fig = plt.figure(figsize=(12,9)) • m = Basemap(projection='mill', • llcrnrlat = -90, • urcrnrlat = 90, • llcrnrlon = -180, • urcrnrlon = 180, • resolution = 'c') • m.drawcoastlines() • m.drawparallels(np.arange(-90,90,10),labels=[True,False,False,False]) • m.drawmeridians(np.arange(-180,180,30),labels=[0,0,0,1]) • sites_lat_y = df['latitude'].tolist() • sites_lon_x = df['longitude'].tolist() • colors = ['green', 'darkblue', 'yellow', 'red', 'blue', 'orange'] • m.scatter(sites_lon_x,sites_lat_y,latlon=True, s=500, c=colors, marker='o', alpha=1, edgecolor='k', linewidth=1, zorder=2) • m.scatter(-135,60,latlon=True, s=5000, c='blue', marker='^', alpha=1, edgecolor='k', linewidth=1, zorder=1) • plt.title('Basemap tutorial', fontsize=20) • plt.show()

#############################









Content Report
Youtor.org / YTube video Downloader © 2025

created by www.youtor.org