Octave graphic add-on, Octaviz



česky

1.10 Surf 3D graph with setup color conversion - vtk_surfc



Function file: f = vtk_surfc (x,y,z,c [prop, val])


Displays both a surface and contour plot defined by x,y,z matrices, where x and y are typically formed by meshgrid. c is an optional matrix to give a color scale.

Parameter fmt:
color of surface - parameter Color
transparency (opacity) - parameter Opacity
number of contour lines - parameter NConts


Example:
[a,b]=meshgrid(0:0.25:1,0:0.5:2) ;
x=sin(a);
y=sin(a).*b;
z=b;
c=[0,0,0,0,0;2,2,2,2,2;1,1,1,1,1;0,0,0,0,1;4,4,4,4,4];
vtk_surf(x,y,z,c,'NConts',8)






<<< 1.9 Surf 3D graph - vtk_surf 1.11 Mesh 3D graph defined by triangles - vtk_trimesh >>>

© 2008 David Prokop