6.17.1 2D Waterfall


Video Image.png Video Text Image.png Website blog icon circle.png Blog Image 33x33px.png

Summary

Origin's Waterfall plot uses a dataset stored in a parameter row to set the Z offset and create a color map with Y or Z values.

What you will learn

This tutorial will demonstrate how to:

  • Create a 2D Waterfall color map with Y or Z values
  • Customize colormap levels and palette

Steps

This tutorial is associated with the Tutorial Data project:<Origin EXE Folder>\Samples\Tutorial Data.opj.

Create Waterfall with Y Colormap

  1. Open the Tutorial Data project and browse to folder Waterfall in Project Explorer. Select the Book4G window to activate it. Click in the upper left corner of the worksheet to select all data.
  2. Right-click and select Plot > 3D : Waterfall Y:Color Mapping to create a Waterfall with Y color mapping. (Alternatively, select the Waterfall Y:Color Mapping button from the 2D Graphs toolbar.) A graph resembling the image below will appear:
    Waterfall Graph 01.png
    Note that the values stored in the user-defined parameter row Frequency (Hz) have been automatically picked up as the Z Value Source. Confirm this by double-clicking the plot to open the Plot Details dialog box and selecting Layer1 in the left panel. Select the Waterfall tab and observe that the Z Value Source is set to Frequency (Hz).
    Waterfall Graph 02.png
  3. With the Plot Details dialog box still open, in the left panel, select the first line plot under Layer1. Select the Colormap tab in the right panel. Click on the Level… column header to open the Set Levels dialog box. Set levels as shown below:
    Waterfall Graph 03.png
    Click OK to close the Set Levels dialog box.
  4. Click on the Fill… column header to open the Fill dialog box. Select Load Palette, and choose the Rainbow palette from the palette list. Click OK button to close the Fill dialog box.
    Waterfall Graph 04.png
    Click OK to apply these settings and close the Plot Details dialog box.
  5. Double-click the plot's Z axis to open the Axis dialog box. Go to the Scale tab and set the major tick Value to 50.
    Waterfall Graph 05.png
  6. Go to the Grid tab. Press the Ctrl key to select the X and Y axes in the left panel, and the clear the Minor Grids check box.
    Waterfall Graph 06.png
    Click OK to apply changes and close the dialog box. The final graph should look like this:
    Waterfall Graph 07.png

Create Waterfall with Z Colormap

  1. In the Project Explorer (usually at the left of the screen), browse to \2D and Coutour Graphs\Waterfall. Select the Book4G window to activate. Click in the upper left corner of the worksheet to select all data.
  2. On the main menu, click Plot, then point to Y-offset/Waterfall, and then select Waterfall Z:Color Mapping to create a Waterfall with Z color mapping. (Alternatively, select the Waterfall Z:Color Mapping button from the 2D Graphs toolbar.)
    Waterfall Graph 08.png
  3. Double-click the plot to open the Plot Details dialog box. In the left panel, select the first line plot under Layer1. Select the Colormap tab in the right panel. Click the Level… column header to open the Set Levels dialog box. Set Major Levels to 10.
    Waterfall Graph 09.png
    Click OK to close the Set Levels dialog box.
  4. Click the Fill… column header to open the Fill dialog box. Select Limited Mixing and set the From color to red and the To color to blue. Click OK to apply these settings and close the dialog box. Click OK to close the Plot Details dialog box.
    Waterfall Graph 10.png
  5. Double-click the Y axis to open the Axis dialog box. Set the vertical Increment to 50. Select the Grid Lines tab. Select Horizontal from the Selection box, and clear the Minor Grids check box. Select Vertical from the Selection box and clear the Minor Grids check box. Click OK to close the Axis dialog box.
    Your final graph should look like this:
    Waterfall Graph 11.png