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 : Contour - Color Fill from the main menu to plot a contour graph.
    Contour Graph with XY Data Points and Z Labels 02v.png
  3. Highlight col(B), and hover the mouse to the right edge of col(B). The drag-and-drop icon Button Drag Column to Graph.png will appear. Press down the left mouse key to drag and drop the data into the contour graph layer as a line+symbol plot.
    Contour Graph with XY Data Points and Z Labels 04v.png
  4. Click on the line+symbol plot to choose it, and right-click on it to choose Change Plot to: Scatter context menu to change the plot to Scatter.
  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, Label Form as Col(C) and Numeric Display Format as .1.
    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.