| Home | Lua | XML | C-Talk | Z-Script |
Lua
OpenGL
Surface
Iso-surface
3D plot
Sub-plots

3D Plot Package

(in preparation)

Using Lua package is a perfect way to customize zeGraph for special purposes. The native library functions of zeGraph are designed to deal with general data visualizations and hence intended to be flexible, which comes with a price of lengthy object creations for even a simple plot. Here we use the 3D plot package in ./package to demonstrate how to reduce tedious procedures.

We identify that (1) the minimal required objects for creating a plot include render, scene, node, font, and plot and (2) relocating axises involves calculations that are not so easy to remember. The solution here is to create those objects by a package and set their attribute properly when the package is created. When the image size or the plot scales are changed by package functions, axises should be relocated properly and automatically by the same functions as well.