3d plot from CSV data


Any example for plotting a 3D surface for a CSV Data formulated as (x, y, f(x, y)).

I am interested in the surface plot [Surface Plot.] (3D surface (colormap) — Matplotlib 3.6.0 documentation)

Which part are you having trouble with? Reading the csv data or doing the plotting? The example you linked is fairly self-explanatory. Also, this shows you how to read in csv data, but you may want to use something like np.genfromtxt(…, delimiter=‘,’) which will give you an array which you may need to reshape before passing to ax.plot_surface.