MayaVi provied a nice matlab-like 3d plotting kit for Python called "mlab". It uses Python-wrapped VTK and works directly with NumPy arrays.<br><br><a href="http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/mlab_helper_functions.html#surf">http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/mlab_helper_functions.html#surf</a><br>
<a href="http://www.scipy.org/Cookbook/MayaVi/Surf">http://www.scipy.org/Cookbook/MayaVi/Surf</a><br><br>Some neat related examples here:<br><a href="http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/examples.html">http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/examples.html</a><br>
<br>-Isaiah<br><br><br><div class="gmail_quote">On Tue, Jun 21, 2011 at 7:32 AM, Jothy <span dir="ltr"><<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">Thanks David, will have alook at this.<br><font color="#888888"><br>Jothy</font><div class="im"><br><br><div class="gmail_quote">On Tue, Jun 21, 2011 at 12:30 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>On Tue, Jun 21, 2011 at 7:23 AM, Jothy <<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I would like to create a surface plot of 3 variable (x,y,z). There are<br>
> functions to do this in MATLAB, but I wonder is there any classes in VTK to<br>
> do that?<br>
><br>
> Thanks<br>
><br>
> Jothy<br>
<br>
</div></div>If you have f(x,y) = z, (which I think is what surf handles) you can<br>
use this technique:<br>
<a href="http://vtk.org/Wiki/VTK/Examples/Cxx/Meshes/ElevationFilter" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/Meshes/ElevationFilter</a><br>
<font color="#888888"><br>
David<br>
</font></blockquote></div><br></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>