Color Expression
Use a Color Expression node () to add coloring (according to an expression that you define) to the shapes or lines defined by a plot. You can add this subnode to the following plot types: Line Graph, Point Graph, Global, Nyquist, Arrow Volume, Arrow Surface, Arrow Line, Table Arrow, Contour, Isosurface, Particle Trajectories, Point Trajectories, Ray Trajectories, Streamline, Admittance Graph, Impedance Graph, Reflection Graph, Spot Diagram, Waterfall, Whirl.
In the Model Builder, add and define a plot group. Right-click the plot node (for example, Streamline) and select Color Expression.
The Color Expression subnode has no effect for global and point graph plots that show a frequency spectrum.
Go to Common Results Node Settings for links to information about these sections: Expression, Title, Range, and Coloring and Style. In the Expression section, an extra setting is available if the Color Expression subnode is added under an arrow plot node, see below.
Expression
For Color Expression subnodes under arrow plot nodes, you can choose Arrow length from the Color data list to color the arrows according to the arrow length. The default setting is Expression, and then you can enter an expression for the color in the Expression field below.
For trajectory plots, the Color data list is only available if the point type is set to Arrow in the parent trajectory plot node’s settings.
Data
The Data section is only available for Color Expression subnodes under Table Arrow plots. This section contains settings for assigning arrow colors based on data from the referenced table or elevation group. From the Color data list choose:
Arrow length (the default), to color the arrows according to the arrow length.
Data, to define the arrow color based on data in a table column. From the Column list, choose Auto (the default) to let the software pick a column automatically; it will usually be the last column in the table. To manually specify which column to use, choose Manual from the Column list and then select any available column from the Data column list.
For all data formats, select the Plot imaginary part checkbox if you want to plot the imaginary part of complex-valued data. For real-valued data, that plot shows a zero imaginary part.
Preprocessing
The Preprocessing section is only available for Color Expression subnodes under Table Arrow plots. This section contains settings to preprocess the color data by scaling and shifting the data values, which can be useful to match data from different sources or to scale some data to express the values in another unit. From the Transformation list choose:
None (the default), for no preprocessing of the data.
Linear, to preprocess the data using a linear transformation of the color data. You define the linear preprocessing with values for the scaling (default: 1) and the shift or offset (default: 0) in the Scaling and Shift fields, respectively. The default values do not change the original data values.