Octave graphic add-on, Octaviz



esky

1.13 Addition in graphs in vtk_figure



Function file: vtk_axis(bool)


Right now, this can only be used to turn the axes on and off. Eventually this function should allow setting the scaling and limits of the axes.
So, you can write either vtk_axis(false) for hidden axes or vtk_axis(true) for display axes.



Function file: vtk_title(string)


Adds a title to a vtk figure. The tittle must be written to comma.


Function file: vtk_scalarbar(string)


Adds a color scalar bar to the side of a vtk figure. The input string will be the title of the scalar bar. This is a work in progress. It doesn't update automatically (although it can be called again), and only works on the last actor rendered.

Example:
[phi,theta]=meshgrid(0:pi/250:pi,0:pi/250:2*pi);
m0=4;m1=3;m2=2;m3=3;m4=6;m5=2;m6=6;m7=4;
r=sin(m0*phi).^m1+cos(m2*phi).^m3+sin(m4*theta).^m5+cos(m6*theta).^m7;
x=r.*sin(phi).*cos(theta);
y=r.*cos(phi);
z=r.*sin(phi).*sin(theta);
vtk_surf(x,y,z);
vtk_scalarbar("teplota");
vtk_title("Spherical harmonics");
vtk_axis(false);




Function file: vtk_imshow(bool)


This function display picture in grayscale, whose range is from 0(dark) till 256(light). Parameter a can be matrix NxM or NxMx3.

Example:
a=[50 72 80 150 160 180;20 64 120 150 200 210]; vtk_imshow(a);





Function file: vtk_print(filename, options)


Save vtk window to a defined file. The vtk window must be the top window on your display (i.e. unobstructed) for most of the output devices to work properly. This function now attempts to raise your vtk window to the top, but your windows manager may intercept that call (e.g. KDE). To prevent this, you should turn off so-called "Focus stealing prevention" options in your windows manager.


Parameter options:

-dtype, where instead type write: ps, eps, pdf, tiff, jpeg, png, rib
-vect: Use only vector graphic output for postscript/pdf. Default is to write 3D props as an image. Warning: incorrect polygon placement and/or huge filesize is probable with this option
-tex: Write text to a tex file and exclude text from postscript/pdf
-nocompress: Do not compress images in pdf and tiff output
-qualityXX: Set jpeg quality. Default is 100


Examples:
vtk_print("/home/Ubuntu/output.jpeg","-djpeg","-quality90");




<<< 1.12 Surf 3D graph defined by triangles - vtk_trisurf 2. New function for Octaviz >>>

© 2008 David Prokop