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.
- Create the classed post map and select the Classed Post layer in the Contents window.
- In the Properties window, on the General page, check Show legend to show the legend.
- Select the Legend in the Contents window.
- In the Properties window, on the General page, under the Class section, expand the Font properties. Set the Foreground opacity to 0%.
- Click Home | Insert | Text.
- Click inside the legend and enter the text labels you want in the Text Editor, one label per line, and click OK.
- Press ESC on the keyboard to exit text mode.
- Position the text labels next to the symbols in the legend.
- 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.
- Make the edits to the data file.
- 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.
- 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.
- 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.
- The next column is for the "Z" data. Enter the numeric value equivalent to the labels you want.
- The fourth and last column is for the actual text labels you want. Enter the label corresponding to each Z value.
- Save and close the data file.
- In the plot window, select the existing classed post map, and in the Properties window click the Classes tab and click Edit Classes.
- Click the Save button, give the class file a name, and click Save and OK.
- Now click Home | New Map | Post | Classed Post, select the data file and click Open.
- Format the new classed post layer.
- Select the new Classed Post layer in the Contents window.
- On the General page, select the new X, Y and Z coordinate columns.
- 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.
- On the Classes page, click Edit Classes, click Load, select the CLS file previously saved and click Open and OK.
- 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.
- Select Bottom Axis in the Contents window.
- 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.
- Repeat for Top Axis, Left Axis and Right Axis.
- Right click over Map in the Contents window and click Rename Object. Enter "Legend" and click OK.
- In the Properties window, click the Scale tab.
- Uncheck Proportional XY scaling.
- Under X Scale, set the Length (page units) to 1.25 inches.
- 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.
- Click the Limits tab.
- Increase the xMin to 0.75.
- Increase the xMax to 3.5 (you may need to adjust this depending on the length of your labels).
- Decrease the yMin to 0.
- 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