![]() |
| home | graph lib | utility lib | custom lib | auxiliary lib | tutorials | |
||||||||||||||||||||||||||||
|
zeColorBarUse .new("colorbar") to create the object for scientific or business plots. Position of zeColorBar refers to the global coordinate system. If the width is larger than the height, the bar is drawn horizontally; otherwise vertically. :add(v, r, g, b) v - the values that the color represents. Adds the color for the value to the color table of zeColorBar. :add(table) table - a Lua table. Adds the colors for data values using Lua table, which should contain only numbers in the order of data value and color components of red, green, and blue. :font(obj) obj - a zeFreetype (font) object. Assigns a font object to be used for generating text. :fontsize(size) size - font size. Sets the font size. :get(value) value - a number for the value that color represents. Gets the color that represent the value. Returns red, green, blue to the caller. :set(table) table - a Lua table. Sets colorbar properties. Valid key-value paris are listed in the table.
|