Waterfall Plots
Mathcad Staff
Waterfall plots are plots of the same process or data repeated for slightly different values of a single parameter. You can make both 2D and 3D waterfall plots in Mathcad
2D Waterfall Plots
The 2D waterfall plot packs all the response data values into columns of a y matrix, and the input values into columns of an x matrix. The 2D plot pairs the columns and creates multiple traces.
The y data is contained in a scrolling table
Use a range variable to define a vector of x values with the same number of rows as the y data:
You can plot the y data versus this x vector:
However, if you wish to provide an offset for each x value as well as each y value, you need to create an x matrix as well. The x and y values must be offset slightly for each column so that the otherwise overlapping traces can be made visible.
Type [Ctrl][6] to enter the column operator.
Note that the offset means that only the first trace retains the correct data values according to the numbering on the plot. If you do not wish to display numbers on the axes, double-click the plot and deselect Numbered on the X-Y Axes tab.
If you have traces of unequal lengths to display in this fashion, you can pack the empty entries in the array with NaNs (Not a Number).
The NaN entries are not displayed, leaving blanks in the line.
3D Waterfall Plots
You can achieve a similar effect using a 3D scatter plot and the y-values only.
Choose
Enter the y matrix in the placeholder,
Double-click the plot to bring up the 3-D Plot Format dialog.
Select the Appearance tab. Under Line Options, select Lines, and under Point Options, deselect Draw Points.
Your plot should look like the one below.