OriginLab Corporation - Data Analysis and Graphing Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis                     
 
Skip Navigation Links
All BooksExpand All Books
TutorialsExpand Tutorials
GraphingExpand Graphing
3D GraphsExpand 3D Graphs

6.12.22 3D Ternary Colormap Surface with Contour Lines Projection


Summary

In this tutorial, a 3D ternary surface with Z colormap and its projection with contour lines are generated from XYZZ worksheet data.

3D Ternerin Surface.png

Minimum Origin Version Required: Origin 2015 SR0

What you will learn

This tutorial will show you how to:

  • Generate a 3D ternary surface plot with Z colormap.
  • Project color-mapped contour lines onto the XYZ axis plane.

Steps

Creating 3D ternary surface

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

  1. Open the Tutorial Data project and browse to folder 3D Ternary Surface.
  2. Activate the worksheet Ternary Surface in Book1F ,and highlight col(C) and col(D). Select Plot: 3D Surface:3D Ternary Colormap Surface to generate a colormap surface.
  3. We will modify the plot to show the edges of the 3D prism. Double-click on the plot to open the Plot Details dialog box. Highlight Layer1 in the left panel (take care not to clear the check mark beside the Layer1 icon). Go to the Plane tab, set Prism to Whole Prism and enable Plane Border.
    3D Surface plane-1.png
  4. Expand the Layer1 node, highlight the dataplot icon and click the Fill tab. Check Enable box and select Colormap. Check the box beside Fill back surface and set color as LT Gray.
    3D Surface fill-2.png
  5. Click the Colormap / Contours tab. Click the Level heading and in the Set Level dialog box, set controls as follows, then click OK to close the dialog box.
    3D Surface Level-3.png
  6. To add contour lines on the ternary surface, check the box next to Enable Contours.
    3D Surface color-3.png
  7. To customize the contour lines, click the Line heading to open the Contour Lines dialog. Under Line Properties, check the box before Color and Style and set the Color as Dark Gray and Style as Short Dash, then click OK.
    3D Surface enable contour-4.png
  8. Go to the Mesh tab, clear the Enable box, then click the OK button.
    3D Surface mesh-5.png
  9. To customize the scale and the major ticks of the X/Y/Z axes, click on a graph axis to open the Axis Dialog box. Expand the X, Y and Z nodes, then press CTRL while selecting Scale for the X ,Y and Z axes. Set Major Ticks > Value to 0.2.
    3D Surface Tick-1.png
  10. Expand the Zh axis node and select Scale. Duplicate the scale range and the Major Ticks > Value settings as shown below.
    3D Surface Tick-2.png
  11. Click OK to close the Axis Dialog box.

Creating projection with contour lines

  1. With the graph page active, select Graph: Layer Contents from the main menu to open the Layer Contents dialog. Select Worksheets in Folder from the drop-down.
  2. To add another ternary surface to the graph, press CTRL and in the left panel, select the datasets XC and CRC299 of sheet "Ternary Surface", then click the Add plot button Button Add plot.png to add them to the right panel. Click OK.
    3D Surface layer-con-6.png
  3. Double-click on the plot to bring up the Plot Details dialog box. Under Layer1, click on the second plot, then click on the Surface tab. Under Display, choose Flat and Shift in Z by percent of scale range, 0 = bottom, 100 = top.
    3D Surface contour plot de.png
  4. On the Colormap / Contours tab, select Enable Contours. Click the Line heading and edit the Contours Lines dialog box settings as in the following image and then click OK.
    3D Surface contour line pro.png
  5. On the Colormap / Contours tab, click the Level heading and in the Set Level dialog box, set # Major Levels to 20 and # of Minor Levels to 5. Click OK to close the dialog box.
  6. Go to Fill tab and clear the Enable box.
    3D Surface unc fill.png
  7. On the Mesh tab, clear the Enable box. Click OK to close the dialog box.
  8. To change the grid lines on the axis planes dashed lines, double click the axis to bring up the Axis Dialog box. In the left panel, expand the X node and select Grids. Press Select Others to choose grids for all the axis planes. Customize the Major Grid Lines section as follows:
    3D Surface Grids.png
  9. Rotate the plot by dragging a hotspot (hint: click once inside the graph frame - but not on the plot -- to activate the move/resize/rotate functions). Alternately, you can use the tools on the 3D Rotation toolbar.

3D Surface rotter.png

 

© OriginLab Corporation. All rights reserved.