Contents Previous Next Subchapters

Creating Image Plots
Syntax avimage(color source)
avimage(plotNamecolor source)
avimage(plotNamecolor sourcecolor format)

Description
Creates a Data Visualizer image plot of the matrix color source. The character row vector plotName specifies the name of the group in which the image graph object is created. If the value of plotName is "/" then the graph is created in the root directory, otherwise the value of plotName must be a valid group name such as "/ImagePlots".

If the type of data plotted by avimage is logical then the color palette for the group containing the plot is converted to a black and white palette. If the type of data plotted by avimage is char then the color palette for the group containing the plot is converted to a gray scale palette.

By default avimage uses the Array Viewer color format type of "Range". (See the Array Viewer documentation for detailed description of color formats.) If present, the argument color format must equal, "INDEX", "RANGE", "MONO", "RGBA", "RGBX", "ABGR", or "XBGR".

Example
If at the O-Matrix prompt you enter
     avimage(rand(4,5));
The Data Visualizer will create the following graph



If you continue the example by entering
     R = rand(12,18) * 1000
     R = char( mod(R,256) )
     avimage("/GrayScale", R)
The following graph will be created