Contour map from excel file


could you please any one know how to plot contour map from excel file which have three column (longitude , latitude, altitude)

i tried many time with no success.

That’s a task better suited for cartopy, and here’s an example:

import matplotlib.pyplot as plt
import as ccrs
from cartopy.examples.waves import sample_data

ax = plt.axes(projection=ccrs.Robinson())


lons, lats, data = sample_data(shape=(20, 40))

plt.contourf(lons, lats, data, transform=ccrs.PlateCarree())


where you should probably use a library like pandas to read in the file. (

Regardless of using cartopy or not, you likely need to grid your data using griddata or use tricontourf