Contents - Index


OverlayPlot (Macro Command)

 

OverlayPlot Name='my Plot' Table='myTable'  X=P[4]  Y=Eff  Rows=1..10  LineStyle=1  Symbol=4  SymbolSize=10 Color=Blue Scale=Right Legend='legend text'  ErrorBars  PointLabels  ConnectLasttoFirst  AutoUpdate

 

Overlay a plot of variables Eff vs. P[4] from data in rows 1..10 of the Parametric table, Lookup table or Arrays table that has the name 'myTable'.  Note that the table name can be provided as a string variable, e.g., TN$. 

 

The plot window that the data will be plotted on is specified by providing the name of the plot window tab after the Name= keyword.  The plot tab name may be either a string constant within single quotes or a predefined EES string variable.   (EES will also accept a numerical value indicating the position of the plot tab.  By default, data are plotted on the left Y axis.   

 

The name on the tab of the table from which data will be plotted follows the Table= keyword.  Note that the table could also have been identified by entering PARN, LOOKN, or ARRN where N is the tab number of the Parametric or Lookup tables.  You can use ARR for the first Arrays table or INT for Integral table. The Legend keyword causes a legend item to be created. 

 

Symbol, SymbolSize, Color and LineStyle indicators may be an integer or an EES variable.  (See NewPlot (Macro) for a list of these parameters.)

 

Scale=Right keyword indicates that the data will be plotted on the right Y-scale.  

 

Legend causes a legend item to be created.  The legend text following the = sign can be a string constant of string variable that has been previously defined.  If a string constant is used and it has embedded spaces, it it necessary to surround the text with single quote marks.  If an equal sign is provided after the Legend keyword, it will be assumed that the legend text is the same as the name of the Y-axis variable.  

 

ErrorBars will cause error bars to be drawn if the data that are plotted contain uncertainty information. 

 

PointLabels keyword places a label next to each plotted point.  By default, the label is an integer corresponding to the array position (when plotting from the Arrays window) or row (when plotting from the Parametric or Lookup tables).  The point labels keyword can be optionally followed with a /ColName, where ColName is the name of a column in the table that is being plotted.  In this case, the point labels will be set to the value (or string) in the specified column of the table rather than to the row or array position.  The column number can be provided as an alternative to providing the column name.   An example is provided in the description of the NewPlot macro command

 

ConnectLasttoFirst keyword will cause a line to be drawn from the last plotted point to the first point.  This option is useful when plotting thermodynamic cycles. 

 

AutoUpdate will cause the plot to be updated whenever the data in the table change.

 

Note that all of the parameters except the Name, Table, and X and Y specifications are optional.

 

See also: AddPlotText  

 

MacroCommands