Graphing Multiple 2D Expressions

You can plot several curves on either an X-Y or Polar Plot by typing a comma between the arguments on each axis or by adding a secondary y axis.

Follow the steps below to graph more than one expression on the primary y-axis (left side) on an X-Y plot:

  1. Choose Graph > X-Y Plot from the Insert menu to create a plot region.
  2. In the middle placeholder under the horizontal axis, enter the first expression or variable you want to plot.
  3. Type a comma. A placeholder appears to the right.
  4. Enter the second expression or variable. You can continue adding expressions separated by commas, up to a total of 16 expressions.
  5. In the middle placeholder beside the vertical axis, enter the first expression you want to plot.
  6. Type a comma and enter the second expression, and so on.

Example:

If you want to create an X-Y plot of sin(x) and cos(y) versus x and y, you type x,y in the middle horizontal placeholder, and sin(x),cos(y) in the middle vertical placeholder. When you click out of the plot, Mathcad displays:

graph of more than one expression on an X-Y plot

Each trace represents a matched pair of expressions. Each matching pair of expressions should use the same range variable, but the range variable for one pair does not need to match the range variables for the other pairs.

Notes:

Related Topics