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                           
 

6.9.5 Contour Graph with XY Data Points and Z Labels

Summary

This tutorial will show you how to create a contour from XYZ data and add Z value as label for each XY data point.

Contour Graph with XY Data Points and Z Labels-01.png

What will you learn

This tutorial will show you how to

  • Create a Contour Plot from XYZ data.
  • Customize levels, lines, and color mapping.
  • Plot a scatter plot on a contour graph.
  • Show the labels for scatter points.

Steps

  1. Start a new workbook and import the file Sample/Matrix_Conversion_and_Gridding/XYZ_Random_Gaussian.dat.
  2. Highlight col(C) and set it as Z. Then highlight all columns and select Plot: Contour/Heatmap: Color Fill from the main menu to plot a contour graph.
    Contour Graph with XY Data Points and Z Labels 02v.png
  3. Double-click the layer icon to open the Layer Contents dialog. In this dialog, select col(B) in the left panel, set the Plot Type as Scatter, then add it to the right panel.
    Contour Graph with XY Data Points and Z Labels 03v.png
  4. Click OK button to close the dialog. The scatter plot will be added to the contour graph.
    Contour Graph with XY Data Points and Z Labels 04v.png
  5. Double-click the graph to open the Plot Details dialog. In this dialog, go to the Colormap/Contours tab, the contour plot in the left panel is selected. Click the Level... header to open the Set Levels dialog to set the Minor Levels as 4.
    Contour Graph with XY Data Points and Z Labels 05.png
  6. Click OK button to go back the Plot Details dialog. Go to the Label tab while the scatter plot is selected in the left panel, check the Enable check box to activate this tab. Set the Size as 12, Position as Below and Label Form as Col(C).
    Contour Graph with XY Data Points and Z Labels 06.png
  7. Click OK button to close this dialog. The Z values will be added as labels to the graph. Click the Rescale button Rescale button.png to rescale the graph.
 

© OriginLab Corporation. All rights reserved.