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.11 Parametric Surface with Colormap from Data


Summary

This tutorial demonstrates how to create a 3D sphere using the data from three matrices. It also shows how the surface is filled to display the surface temperature contour using the data from a different matrix.

Parametric Surface with Colormap from Data 15.png

Minimum Origin Version Required: Origin 2015 SR0

What you will learn

This tutorial will show you how to:

  • Create a parametric surface from matrix data
  • Set contour fill from another matrix
  • Customize the 3D parametric surface plot

Steps

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

  1. Open Tutorial Data.opj and browse to the Parametric Surface with Colormap from Data folder in Project Explorer (PE).
  2. Activate the matrix FUNCA:1/4, and highlight the data. Click the Button Multiple Color Map Surfaces.png button on the 3D and Contour Graph toolbar to create a colormap surface as shown below. You can also create this colormap surface by selecting Plot: 3D Surface: Color Map Surface in the main menu.
    Parametric Surface with Colormap from Data 01.png
  3. Double click on the plot to bring up the Plot Details dialog. In the Surface tab check the Parametric Surface box and set X Matrix, Y Matrix as Mat(2), Mat(3) respectively.
    Parametric Surface with Colormap from Data 02.png
    Click OK to close the dialog.
  4. In order to display the complete colormap surface in the axes area use the rescale Button Rescale.png button in the Graph toolbar. The colormap surface should appear as shown below:
    Parametric Surface with Colormap from Data 03.png
  5. Double click on the plot to open Plot Details dialog. This dialog box is used to customize the surface. In the Fill tab Front Surface section deselect the box before Self and set Contour fill from matrix as Mat(4). Click Apply.
    Parametric Surface with Colormap from Data 04.png
  6. Activate the Colormap / Contours tab. Click the Level heading to open the Set Levels dialog. Click Find Min/Max and set Major Levels, Minor Levels as 16, 8 respectively. Click OK.
    Parametric Surface with Colormap from Data 05.png
  7. Click Fill to open the Fill dialog. This dialog is used to customize the color scale. The Load Palette option allows the user to select from a list of possible palettes. Set Load Palette as Temperature. Click OK.
    Parametric Surface with Colormap from Data 06.png
  8. Click on the Mesh tab. Set Line Width as 0.05 by clicking on the font box and typing the value instead of using the drop down menu. Set Line Color in the Front section as LT Gray. Click Apply.
    Parametric Surface with Colormap from Data 07.png
  9. In the Numeric Formats tab choose the Decimal Places radio button and set its value as 0.
    Parametric Surface with Colormap from Data 08.png
    Click OK to apply the settings and close the Plot Details dialog. The graph should appear as shown below:
    Parametric Surface with Colormap from Data 09.png
  10. The next step is to modify the axes. Double click on the Z axis to open the Axis Dialog. Go to the Scale tab, select Z icon. Set the value of From and To as -400 and 400 respectively.
    Parametric Surface with Colormap from Data 10.png
  11. Go to the Title tab, hold Ctrl key and click to select X, Y and Z together. Deselect the Show check box to hide the axis title for all axes and click OK to close the dialog.
    Parametric Surface with Colormap from Data 16.png
  12. Double click on the XY Plane to open Plot Details - Layer Properties. In order to hide the axes, in the Display tab, deselect the X Axes, Y Axes, Z Axes boxes under the Show Elements section.
    Parametric Surface with Colormap from Data 11.png
  13. To hide the YZ and ZX planes, click on the Planes tab, and deselect the boxes before YZ, ZX. Set the Color of the remaining XY plane as LT Gray. Click OK to close the dialog.
    Parametric Surface with Colormap from Data 12.png
  14. The next step is to customize the color scale. Double click on it to open the Color Scale Control dialog, go to the Labels node and set the Font as Verdana.
    Parametric Surface with Colormap from Data 13.png
  15. Go to the Line and Ticks node and hide the border and ticks:
    Parametric Surface with Colormap from Data 13b.png
  16. Click OK to apply the setting and close the dialog. Select and drag to move the color scale object to the desired location.
  17. Right click on the white area of the graph layer to bring up a context menu and choose Add/Modify Layer Title. Click else where to deselect the text box, then right-click on it and select Properties... from the shortcut menu to open the Object Properties dialog. Set the font as Verdana and type Surface Temperature (\+(o)C) in the content table. Click OK.
    Parametric Surface with Colormap from Data 14.png
  18. Click on the graph layer within the 3D frame (not the data plot), and click the Rotate button as shown in the image below, to activate the rotation mode. Other ways to rotate the 3D plot include using the red rotate button in the Tools toolbar, the various buttons in the 3D Rotation toolbar or by selecting in the plot, pressing the R key and using the cursor.
    Parametric Surface with Colormap from Data 17.png
    Rotate the plot to get a better view. The graph should resemble the image shown below:
    Parametric Surface with Colormap from Data 15.png
 

© OriginLab Corporation. All rights reserved.