General Graph

Synopsis

Constructs a 2-dimensional graph from the input data.

Input Port

valuesX[]

float[]

valuesY[]

float[]

parent

user interface parent object

Parameters

Graph On/Off

UItoggle

Graph visibility

Graph priority

UIfield

Graph priority

graphtype

UIradioButton

Type of graph

Bar width

UIfield

Bar graph width

Line width

UIfield

Line graph width

Scatter symbol

UItext

Symbol of scatter graph

Scatter size

UIfield

Symbol size

Graph Name

UItext

Title for legend

line style

UIoptionMenu

Line graph style

line color

UIoptionMenu

Line graph color

Output Port

output

AGPrimitive

Description

Graph constructs a graph from given X and Y input data.. The graph types are curves, bars, barlines, area, staircase, stairarea. Data can be specified as Y only or X and Y.

Input

valuesX

Denotes X values for the graph. If left unspecified, values starting from 1 (1, 2, 3, 4....) upto the number of Y values are used. The input is an array of float values.

valuesY

Denotes Y values for the graph. Data must be input to this port for the graph to be plotted.

parent

A port to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.)

Parameters

Graph On/Off

UItoggle. Specifies whether the graph is to be displayed or not. The default value is on.

Graph priority

UIfield. Denotes the order in which the graphs are drawn. Graphs with a higher priority are drawn later.

Graphtype

UIradioButton. Defines the graph type.
The different graph types are as follows:
- "bars"
-"barlines"
- "area"
- "curve"
- "line"
- " scatter"
- "staircase"
- " stairarea"

Bar width

UIfield. Specifies the width of the bar. This input is only valid when the graph type is either "bar" or "barlines".

Line width

UIfield. Determines the width of the line. This input is only valid when either"curve" or "line" has been selected.

Scatter symbol

UItext. This is a symbol or a text input which is positioned at various points when the graph type is "scatter" denoting a scatter graph.

Scatter size

UIfield. Determines the size of the symbol. This input is only valid when the graph type is "scatter".

Graph Name

UItext. Denotes the name that is reflected in the GraphLegend module.

line style

UIoptionMenu. Specifies the style in which the line is drawn. The value of this
attribute can be specified in terms of an array describing the shape of the line
or can be chosen from any of the following types:
"solid",
"dashed",
"dotted", or
"dashdotted".

line color

UIoptionMenu. Determines the color of the graph.This attribute can take values such as "red", "yellow","magenta", "cyan", "black", "white" or "gray". It can also take values such as "background" and "antibackground".

Output Port

output

AGPrimitive. Connects to GraphViewport and other modules.

Example

Not Available.

File

v/aghlm.v

See also related modules