[Matplotlib-users] About unstructured grid plotting in 3D

谢瑾博 xiejinbo at mail.iap.ac.cn
Tue Jun 18 09:11:12 EDT 2019


Thanks Ian,
I think this is the most appropriate way for me to do it.
yours,
Jinbo


-----原始邮件-----
发件人:"Ian Thomas" <ianthomas23 at gmail.com>
发送时间:2019-06-18 16:27:09 (星期二)
收件人: "谢瑾博" <xiejinbo at mail.iap.ac.cn>
抄送: Matplotlib-users <matplotlib-users at python.org>
主题: Re: [Matplotlib-users] About unstructured grid plotting in 3D


Hello Jinbo,


The online documentation for mplot3d is at https://matplotlib.org/3.1.0/tutorials/toolkits/mplot3d.html and includes a section entitled "Tri-Surface Plots". That would be a good place to start.


Ian Thomas



On Mon, 17 Jun 2019 at 12:14, 谢瑾博 <xiejinbo at mail.iap.ac.cn> wrote:

Dear Users,
I am currently trying to map a grid of unstructured topography on 3D in python. The data which I am using is in 1d, where another x and y are in 1d. I see that the need for plot_surface is 2d X,Y,Z. I wonder if there is a way I can transform the data to plot for view in topography, or the plot_surface or alternative functions can be used to simply apply the 1d arrays?

PS. Below is the large grid that overlays on the unstructured grid.
yours,
Jinbo




_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
https://mail.python.org/mailman/listinfo/matplotlib-users


--

Dr. Jinbo Xie
State Key Laboratory of Numerical Modeling for Atmospheric Sciences and Geophysical Fluid Dynamics (LASG)
Institute of Atmospheric Physics,Chinese Academy of Sciences 
e-mail: xiejinbo at mail.iap.ac.cn
Tel:86-10-8299-5419(o)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20190618/d941a8a6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1560769855852.png
Type: image/png
Size: 7490 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20190618/d941a8a6/attachment-0001.png>


More information about the Matplotlib-users mailing list