Contour map from excel file

hello

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.

Hi,
That’s a task better suited for cartopy, and here’s an example: https://scitools.org.uk/cartopy/docs/v0.5/matplotlib/introductory_examples/03.contours.html

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

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

ax.set_global()

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

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

ax.coastlines()
ax.gridlines(

where you should probably use a library like pandas to read in the file. (https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html)

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