From: Ondrej C. <on...@ce...> - 2009-03-05 16:53:57
|
On Thu, Mar 5, 2009 at 11:44 AM, Rob Clewley <rob...@gm...> wrote: > On Thu, Mar 5, 2009 at 10:39 AM, Ondrej Certik <on...@ce...> wrote: > >>> OK, but it wasn't clear from the example that I could plot a 3D array >>> of arbitrary data points. The way that you put together the demo plots >> >> As I understand it, it plots triangles and/or wireframe in the end. >> Currently I think our plotting mainly works with surfaces. How can you >> plot a 3D array of arbitrary data points? > > E.g., by plotting a dot at the coordinate (x,y,z). I guess more like a small ball in opengl. I think this can be done directly in pyglet. > >> You need to convert it to >> some triangles first, e.g. do you want to plot contours (isosurfaces)? >> Or do you want to cut a plane in your 3D data points and plot that >> plane? >> > > If I have a set of scalar sample data on a rectangular 2D mesh that I > want to plot in the 3D I'd want a simple wireframe rectangular surface > plot. Can it do that? Yes, that can be done. I can post a simple example, but right now I am urgently working on getting mayavi2 working in the offline mode in the Sage notebook for my presentation on Friday, so I'll get back to this later. Ondrej |