6.12.13 3D Surface with Point Label


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

Summary

This tutorial will demonstrate how to add a 3D Scatter to a 3D Surface and include labels as shown below:

3D Surface with Point Label 01.png

Minimum Origin Version Required: Origin 2015 SR0

What you will learn

This tutorial will teach you how to:

  • Create the 3D Surface with side walls
  • Add a 3D scatter to the 3D Surface and include labels
  • Change the label position in 3D graphs
  • Add a line to connect the symbol and the label

Steps

Create the 3D Surface with side walls:

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: 3D Surface)

  1. Open Tutorial Data.opj and browse to the 3D Surface with Point Label folder in Project Explorer (PE).
  2. Activate MBook4, and highlight everything. Select Plot > 3D : 3D Colormap Surface from the main menu. A 3D Colormap graph will be generated as shown below:

    3D Surface with Point Label 02.png
  3. Select Format: Axes: Z Axis... in the menu to open the Axes dialog. (Or double-click one of the axes on the graph). Set Z axis scale From: -500 and To: 8000. Click OK.

    3D Surface with Point Label 03.png
  4. Select Format: Plot in the menu to open the Plot Details dialog. (Or double click anywhere on the graph). If the left panel is not expanded use the Plot Details Expansion.png button on the bottom left of the dialog to expand it and select the first option under Layer1. In order to create and customize side walls, in the Side Walls tab, check the Enable box. Change the color of X and Y side walls to Gray and LT Gray.

    3D Surface with Point Label 04.png
  5. To adjust the color scale, in the Colormap/Contour tab, click on the Fill column header to open the dialog. Select the Limited Mixing option, and set From: Blue and To: Green as shown below. Click the OK button to close the Fill dialog.

    3D Surface with Point Label 05.png

  6. In the Mesh tab, select color of Major Minor Lines as Black and select apply Apply.

    3D Surface with Point Label 06.png
  7. The next step is to add and customize the lighting effect. In the same Plot Details dialog, expand the left panel and select Layer 1. In the Lighting tab, choose the Directional Mode, enter 279 and -3 in the Horizontal and Vertical boxes respectively. Set the Ambient color to LT Yellow.

    3D Surface with Point Label 07.png
  8. To adjust the planes, in the Planes tab deselect the YZ and ZX boxes to hide the two planes in the graph. Click the OK button.

    3D Surface with Point Label 08.png


Add the 3D scatter in the 3D Surface with labels:

  1. In order to add symbols in the desired position on the 3D graph, select Graph: Layer Contents from the main menu to open the Layer Contents dialog (Or double click on the layer icon 1 on the top left of the graph). In the dialog that appears, select Worksheet in Folder from the drop-down on the top left.
  2. Click on the Plot Type button shown below to specify 3D Scatter/ Trajectory/ Vector as the plot type:

    3D Surface with Point Label 09.png
  3. To shift components from the left panel to the right panel, holding down the Ctrl key, select two Height columns in the left panel and click on the Add plot button Button Add plot.png. This will add the two columns to Layer1. Click the OK button.

    3D Surface with Point Label 10.png

    Use the GUI Elements rotate button.png Rotate Tool button on the Tools toolbar or hold down the R key and use the mouse to rotate the graph. You can find two red symbols are added to the 3D surface and the graph will appear as shown below:

    3D Surface with Point Label 11.png
  4. To add labels and leader lines to the two symbols, double click on either one to open the Plot Details dialog. Make sure the left panel of the Plot Details dialog box is expanded and displaying Original under the Position1 plot-level. In the Label tab check the Enable box. In the Label From drop-down list, select col("Label") as the label source. Specify the Offset, Position and Leader Line for the label as shown in the image below:

    3D Surface with Point Label 12.png
  5. In the left panel, click on Original under the Position2 plot-level. In the Label tab repeat the above step making the selections given below.

    3D Surface with Point Label 13.png
    Click on the OK Button. Labels and Lead Lines should now appear on the graph.
    3D Surface with Point Label 01.png