[Matplotlib-users] **Question post from Albert**

JL subscription.gjl at icloud.com
Wed Aug 21 14:17:59 EDT 2019


Dear Matplotlib users,

I am a matplotlib user from Leeds, UK. Recently, I struggle with a triangle surface plot (https://matplotlib.org/3.1.0/gallery/mplot3d/trisurf3d.html <https://matplotlib.org/3.1.0/gallery/mplot3d/trisurf3d.html>) problem in matplotlib.

As we know, if you have data x, y, z, you can directly call ax.plot_trisurf(x, y, z). 

However, the data set I have is only three lists of data and if you direct call so, you will find surface losses in the z axis.

In MATLAB, you can add a boundary (K = boundary(X, Y, Z, 1);) and then call the function trisurf(K, X, Y, Z), while I cannot find an suitable way in matplotlib or in Python since I do not want to use MATLAB any more :)

The details (including data and some codes) are post as follows, please kindly check, https://stackoverflow.com/questions/57481995/how-to-generate-a-3d-triangle-surface-trisurf-plot-in-python-with-matplotlib <https://stackoverflow.com/questions/57481995/how-to-generate-a-3d-triangle-surface-trisurf-plot-in-python-with-matplotlib>.

Thanks,

Albert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20190821/c5bd8a79/attachment.html>


More information about the Matplotlib-users mailing list