![]() |
| home | graph lib | utility lib | custom lib | auxiliary lib | tutorials | |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
zePlotUse .new("plot") to create the object. It redefines coordinates for objects it contains, but conserves text size of zeAxis objects. The z-axis is disabled by default. However, any call the set() function with axis="z" will enable the axis. :add(object[, object, ...]) object - any graph object except zeRender and zeScene. Adds a number of objects to the plot. :add(object, x, y, z) object - any graph object except zeRender and zeScene.x, y, z - numbers. Adds a object to the node and position it at x, y, and z in the plot coordinate system. If the object is zeText, it will neither be scaled nor rotated by the plot. Any other type of obejcts will be rotated but scaled by the plot. :font(object) object - a zeFreetype object. Sets the Freetype object to be used to generate text. :fontsize(size) size - a number for font size. Sets font size of axes. The function must be called before setting the axis and tick labels. :rotate(az, ax) az - a number for the rotaion angle around the z-axis.ax - a number for the rotaion angle around the x-axis. The function rotates the object first around the z-axis and then around the x-axis. :scale(xs, ys, zs) xs, ys, zs - numbers. Scales all objects in the plot in x, y, and z direction for the factors of xs, ys, and zs. :toglobal(w, h, x, y, z) w - a number to sepcify the scene width.h - a number to specify the scene height. x, y, z - numbers to specify the position in the plot coordinate system. Converts x, y, and z in the plot coordinate system to those in the global coordinate system. :toglobal(w, h, arr) w - a number to sepcify the scene width.h - a number to specify the scene height. arr - a zeArray of double floating type containing x, y, and z. Converts x, y, and z in the first three vectors of the array from plot coordinates to global coordinates. :toplot(w, h, x, y, z) w - a number to sepcify the scene width.h - a number to specify the scene height. x, y, z - numbers to specify the position in the plot coordinate system. Converts x, y, and z in the global coordinate system to those in the plot coordinate system. :toplot(w, h, arr) w - a number to sepcify the scene width.h - a number to specify the scene height. arr - a zeArray of double floating type containing x, y, and z. Converts x, y, and z in the first three vectors of the array from global coordinates to plot coordinates. :set(table) table - a Lua table. Sets axis properties of the plot. Valid key-value paris are listed in the table.
|