Description | Example | Return Message | Group

TE_Graph

Create a contour to color the data.

Syntax

TE_Graph <ObjectPath> {Add | Save} Name "<Name>" AnalysisObject "<Name>" {GraphXY | Multigraph} <Parameters>

Related Commands

Description

The T&E Toolkit Plugin must be installed in order to use this command.

Generate a graph in T&E Toolkit.

GraphXY graphs may have multiple lines but the dimensions must be the same.

Multigraph graphs may have multiple lines with different dimensions.

Name "<Name>" specifies the name of the graph. This parameter is required.

AnalysisObject "<Name>" is the name of the analysis object. This parameter is required.

If the option is Add, then either Segment Color or Segment Gradient must be entered.

The following table describes the parameters for the Add option.

<Parameters>Description
Segment Color "<Color>"Enter a color.
Segment Gradient "<DataElement>,<Value1>,<Color1>,<Value2>,<Color2>,..."Enter the data element, followed by a comma separated list of value, color.

See below for format of <DataElement>.

Point Size "{Small | Large | Medium | Micro}"Enter the size.
Point "{1.0 | 1.5 | 2.0 | 2.5 | 3.0}"Enter the point.
DataElement "<DataElement1>,<DataElement2>,..."A comma separated list of names of the data elements to be plotted.

See below for format of <DataElement>.

If only one data element is defined, you must include the XIsTime parameter.

XIsTimeEnter to specify that the x-axis will show time.
Labels "<Name1>,<Name2>,..."A comma separated list of Y-axis labels.
Units "<Unit1>,<Unit2>,..."A comma separated list of unit names to use for Y-axis.
TimeConstraint "<Value>" .Specify the name of a time constraint.
HorizontalLine "<value>,<label text>,<color>"Enter horizontal line information.
Step "<value>"Enter the name of STK object to use its time step to "thin" the data.
Overlay "<value>"List of file, color, line thickness {thin, medium, thick}, transparency value, fill color, fill transparency (Only the file value is required; the rest are optional).
AnimationLine "<Color>"Enter a color.
ConnectDots "{On | Off}"

Color may be entered using name, value or %rgb.

The format for specifying <DataElement> is: "[<SourceName> |] <ShortName>". If the <ShortName> is enough to identify the element then just enter that. Otherwise, include the <SourceName> followed by the | (bar), before the <ShortName>. Refer to examples of each below.

The following table describes the parameters for the Save option.

<Parameters>Description
File "<Filepath>"Enter the filepath for a graph to be saved to.

Example

A simple graph Latitude vs time

TE_Graph * Add Name "Graph1" AnalysisObject "AF385" GraphXY Segment Color "Pink" DataElement "Latitude" XIsTime

A graph with two lines of the same dimension limited to a certain time constraint

TE_Graph * Add Name "Graph2" AnalysisObject "AF385" GraphXY PointSize "Medium" Segment Color "-16181" Point "1.0" DataElement "Latitude,Longitude" Labels "Latitude,Longitude" Units "deg,deg" time constraint "run1"

A simple multigraph of three lines vs time

TE_Graph * Add Name "Graph3" AnalysisObject "AF385" Multigraph Segment color "Pink" DataElement "Latitude" Segment Color "green" Data element "Longitude" Segment color "blue" data element "Altitude" XIsTime

A graph using a color gradient and time step

TE_Graph * Add Name "Graph4" AnalysisObject "AF385" GraphXY Segment Gradient "Longitude, -2.3, -16181, -2.2, %255255000, -2.2, blue" Data element "Latitude" XIsTime Step "*/Aircraft/Target1"

A graph using scalar value and horizontal line

TE_Graph * Add Name "Graph5" AnalysisObject "AF385" GraphXY Segment color "purple" data element "BodyAspectToTarget1" XIsTIme HorizontalLine ".3, value at .3, orange"

A graph using an overlay

TE_Graph * Add Name "Graph6" AnalysisObject "AF385" GraphXY Segment color "Pink" PointSize "Micro" DataElement "Latitude" Overlay "C:\temp\overlay.txt, darkgreen, Medium, 210, Green, 100"

A multigraph with labels, units, animation line and connecting dots

TE_Graph * Add Name "Graph7" AnalysisObject "AF385" Multigraph Segment color "red" data element "Latitude" Segment color "blue" data element "Longitude" Segment color "green" data element "altitude" XIsTime Labels "Lat,Lon,Alt" Units "deg,deg,km" AnimationLine "yellow" ConnectDots "ON"

Saving a graph previously generated. (T&E 1.5)

TE_Graph * Save Name "Graph7" AnalysisObject "AF385" File "C:\temp\Graph7.png"

Creating a graph specifying SourceName and ShortName for various data elements:

TE_Graph * Add Name "Graph5" AnalysisObject "AF3_0385" GraphXY Segment Color "Yellow" DataElement "AF3_0385_MeasuredTracks_ID.csv [Track1] | NorthWestUp_X" XIsTime Segment Color "%255000000" DataElement "AF3_0385_MeasuredTracks_ID.csv [Track2] | NorthWestUp_X" XIsTime Segment Color "Blue" DataElement "AF3_0385_MeasuredTracks_ID.csv [Track3] | NorthWestUp_X" XIsTime

ReturnMessage

Group Membership

This command belongs to the following group(s):

T & E Toolkit

Version

11.6

Systems Tool Kit (STK),  v11.7;  Latest Help Update: September, 2019