plotly / plotly.py

The interactive graphing library for Python :sparkles: This project now includes Plotly Express!
https://plotly.com/python/
MIT License
15.6k stars 2.51k forks source link

How to smooth 3D surface plot #4633

Open btayhan opened 1 week ago

btayhan commented 1 week ago

I have a 3D surface plot like this:

image

I am not sure how to smooth this plot, I searched but could not find any information.

empet commented 1 week ago

If you know the surface height, z, at n scattered points of coordinates (x, y), then you can get the surface height at the points of a regular meshgrid, using griddata, method="cubic", from scipy.interpolate: https://docs.scipy.org/doc/scipy/tutorial/interpolate/ND_unstructured.html