How can I label the Surfer classed post map legend with text values instead of the numeric range?

Classed post maps can display a specific symbol for data within a specific numeric range, or bin. However, in some cases, you want the legend to display an actual text value instead of a numeric range.


For example, if you want to display well symbols, you can create a column of data containing numeric value for each type of well (e.g. 1=gas, 2=oil, 3=injection, and 4=abandoned). Then create a classed post map and specify the symbol for each numeric range. The legend by default will display the symbol for the well in addition to the numeric range. You may want to display the text of the well type instead of the number. There is not a way to display the text for each bin automatically, but there are a couple ways you can workaround this.


Method 1: Combination legend + text

You can create the legend and then manually enter the text descriptions.

  1. Create the classed post map and select the Classed Post layer in the Contents window.
  2. In the Properties window, on the General page, check Show legend to show the legend.
  3. Select the Legend in the Contents window.
  4. In the Properties window, on the General page, under the Class section, expand the Font properties. Set the Foreground opacity to 0%.
  5. Click Home | Insert | Text.
  6. Click inside the legend and enter the text labels you want in the Text Editor, one label per line, and click OK.
  7. Press ESC on the keyboard to exit text mode.
  8. Position the text labels next to the symbols in the legend.
  9. Select both the legend and the text object in the Contents window and click Features | Group | Group.


Method 2: Create an additional post map as a legend

This method requires creating a few more additional columns of data in the worksheet. This can be in a new data file, or the existing data file used to create the classed post map.  

  1. Make the edits to the data file.
    1. Open the data file used to create the classed post map. You can do this in Excel or the Surfer worksheet. We'll create new columns of data for X, Y, Z and label.
    2. The first empty column is for the "X" data. Enter "1" for the new X values. Enter this for as many rows as you have classes/labels.
    3. The next column is for the "Y" data. Enter the a 1 in the first row, and enter the next successive value on each additional row (1, 2, 3, 4, etc) for as many rows as you have classes/labels.  
    4. The next column is for the "Z" data. Enter the numeric value equivalent to the labels you want.
    5. The fourth and last column is for the actual text labels you want. Enter the label corresponding to each Z value.
    6. Save and close the data file.
  2. In the plot window, select the existing classed post map, and in the Properties window click the Classes tab and click Edit Classes.
  3. Click the Save button, give the class file a name, and click Save and OK.
  4. Now click Home | New Map | Post | Classed Post, select the data file and click Open.
  5. Format the new classed post layer.
    1. Select the new Classed Post layer in the Contents window.
    2. On the General page, select the new X, Y and Z coordinate columns. 
    3. On the Labels page, choose the label column as the Worksheet column, and set Position relative to symbol to Right. Expand the Label Format section and for the Prefix enter two empty spaces.
    4. On the Classes page, click Edit Classes, click Load, select the CLS file previously saved and click Open and OK.
  6. So now the symbols and labels are added, it is time to make the map look more like a legend. Turn off the axis labels and ticks.
    1. Select Bottom Axis in the Contents window.
    2. In the Properties window, on the General page, under Labels, uncheck Show. On the Ticks page, change the Style to None for the Major Ticks.
    3. Repeat for Top Axis, Left Axis and Right Axis.
  7. Right click over Map in the Contents window and click Rename Object. Enter "Legend" and click OK.
  8. In the Properties window, click the Scale tab.
    1. Uncheck Proportional XY scaling.
    2. Under X Scale, set the Length (page units) to 1.25 inches.
    3. Under Y Scale, set the Length (page units) to 0.6 inches. You may need to adjust these slightly depending on the number of symbols you have.
  9. Click the Limits tab.
    1. Increase the xMin to 0.75.
    2. Increase the xMax to 3.5 (you may need to adjust this depending on the length of your labels).
    3. Decrease the yMin to 0.
    4. Increase the yMax to one more than the number of labels you have. So if you have 4 labels, increase the yMax from 4 to 5.


Updated February 2, 2017

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Please sign in to leave a comment.