About unstructured grid plotting in 3D

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20190617/caafa6f1/attachment.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/20190617/caafa6f1/attachment.png>

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20190618/86e97bbc/attachment.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/86e97bbc/attachment.png>

···

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

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>