Contents Up Previous Next

Grapher

Purpose
Description
Example
Tips
Macro Synopsis
Modules
Related Functions


Purpose

Graphically display a signal (Macro only)

Description

"Grapher" displays one or more signals in a separate window. Besides the signal(s) to be displayed, "Grapher" takes an additional string parameter that may contain the following display options (also tunable by the Dataplore ® "Child settings..." context menu):
Note that all parameters are optional, but at least an empty string must be given. The individual variables within the string parameter are separated by commata and can appear in arbitrary order for each signal given. For multi-channel signals, the variables are assigned to the channels in the order they are given. Parameters of different signals are separated by semicolons. lineType and pointType variables can also be given as the indices of the respective types, counting from 0 in the order shown above. Warning: If boolean variables are defined multiply for "Grapher", only the last one will be regarded.

If more than one signal is to be displayed, all signals must be of the same type.


Example

If you want the signal x to be displayed on a grid canvas with a logarithmic scale of the y-axis and a frame around the signal window with a size of 300 x 400 pixels, use

Grapher(x, "grid=true, logY=true, frame=true, width=300, height=400");

Another example for multiple signals x1, x2 and x3, each displayed in another colour and another line type, where x1 is a two-channel signal:

Grapher([x1,x2,x3], "colour=0, colour=1, lineType=line, lineType=line; colour=13, lineType=line-point, pointType=cross; colour=127, lineType=line-dash");


Tips

Font styles and colourmaps can be selected globally.

Macro Synopsis

Grapher([x1,x2,...,xn],s);
signal x1,x2,xn;
string s;

Modules

Basic

Related Functions

GrapherMix, GrapherScroll