PolarGraph


Synopsis

Constructs a 2D polar graph from the input data.

Input Ports

valuesR[]

float[]

valuesT[]

float[]

parent

user interface parent object

 

Parameters

Graph On/Off

UItoggle

Graph visibility

Graph priority

UIfield

Graph priority

graphtype

UIradioButton

Type of graph

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 Ports

output

AGPrimitive

 

Description

PolarGraph constructs a polar graph from given R(Radius) and T(Theta) input data.. The graph types are curves and scatter. Data can be specified as R only or T and R.

Input Ports

valuesR
Denotes R(Radius) values for the graph. Data must be input to this port for the polar graph to be plotted.
valuesT
Denotes T(Theta) values for the graph. If left unspecified, values starting from 0 (10, 20, 30, 40....) upto the number of R values are used. The input is an array of float values.
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:
- "curve"
- " scatter"
Line width
UIfield. Determines the width of the line. This input is only valid when "curve" 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 Ports

output
AGPrimitive. Connects to GraphViewport and other modules.

File

v/aghlm.v