6.8.5 Contour Plot with Vector Overlay

Contents


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

Summary

This tutorial will demonstrate how to create a contour plot with vectors overlay.

Contour with Vector 01.png

What you will learn

This tutorial will show you how to:

Steps

This tutorial is associated with <Origin EXE Folder>\Samples\Tutorial Data.opj.
Also, you can refer to this graph in Learning Center. (Select Help: Learning Center menu or press F11 key , and then open Graph Sample: Contour)

Create the Contour Graph

  1. Open Tutorial Data.opj and browse to the Contour Plot with Vector Overlay folder in Project Explorer (PE).
  2. Activate the W147 matrix and select Plot> Contour: Contour - Color Fill in the menu. The graph below will be created:
    Contour with Vector 02.png
  3. Click on the plot, and in the pop-up mini toolbar, click the Set Levels button to open the Set Levels dialog, and then set the following levels:
    Contour with Vector 03.png
  4. Let's make preparations for the third section Merge the Two Graphs. First, click on X axis, in the pop-up mini toolbar, click Show Tick Labels button to hide the labels. Second, with the pop-up mini toolbar expanded, click Tick Style button to select None from the list.
    Contour with Vector 05.png
    Delete X and Y Axis title.
  5. To change the color scale, double-click on the scale object to open the Color Scale Control dialog. Do the settings below:
  6. Finally, the contour plot should now appear as shown below:
    Contour with Vector 07.png

Create the XYAM Vector Graph

  1. Activate the WOR81147 worksheet, highlight the last three columns and select Plot > Specialized : Vector XYAM in the menu.
  2. Double-click on any vector to bring up the Plot Details dialog on the Vector tab. Use the settings shown below:
    Contour with Vector 08.png
    Then click OK.
  3. To update the axis scales, select Format: Axes: X Axis... to open the dialog and complete the following:
  4. At this stage, you may notice that the vectors extend outside the axes (layer frame). To make sure they display within the layer frame, select Format: Layer and in the Display/Speed tab check the Clip Data to Frame box. Click OK.
    Contour with Vector 10.png
  5. Right-click on the legend of the vectors graph, and select Properties... in the context menu to open the Object Properties. Set the dialog as shown below:
    Contour with Vector 11.png
    Contour with Vector 11-b.png

Merge the Two Graphs

The contour and vector graphs are generated by the steps above, and are ready to be merged into one.

  1. Minimize or Hide all other graphs except for the contour and vector graphs created using the instructions above. With one of the two graphs active, select Graph: Merge Graph Window... from the main menu.
  2. In the Merge Graph dialog, specify the settings as the following:
  3. To set font type as Verdana for all the objects: Or
  4. The final graph should look something like this:
    Contour with Vector 01.png