Ever wonder why your map layers or plot elements keep disappearing behind other objects? Managing layer hierarchy through the Contents window (in Surfer) or the Object Manager (in Grapher) gives you complete control over which map layers, plots, labels, and drawing objects appear in front or behind other layers. Learn step-by-step how object ordering works in both Golden Software programs.
| Topics covered in this article: |
Introduction, Core Concept, and Best Practices
Key Terminology
Surfer and Grapher organize all project elements in a tree hierarchy to determine what items appear in front of or behind others in the Plot window. Understanding a few key terms first will help you master your stacking order and streamline your workflow.
Key Terminology Table and examples
| Term | Applies To | Definition |
|---|---|---|
| Object | Surfer & Grapher | Any selectable item in your project, including entire maps, graphs, axes, legends, and drawn shapes. |
| Level | Surfer & Grapher |
The tier or indentation depth within the tree. You can only reorder items relative to others at the same level. |
|
Layer (Map Layer) |
Surfer Only |
A visual dataset nested inside a Map frame (such as contours, data points, or satellite imagery). Multiple layers can exist within the same map object. |
| Plot | Grapher only |
A graphical representation of a data series (such as a Line, Bar, or Scatter plot). Multiple plots can exist within the same graph object. |
The Stacking Rule
In both Surfer and Grapher, the visual stacking order of your project elements follows one fundamental rule: top of the list equals top of the canvas.
- Objects at the top of the list render in the front (ahead of) other objects, and items at the bottom of the list render in the back (behind) other objects.
How to Reorder
To change the display order of objects with the mouse, select an object and drag it to a new position in the list above or below an object at the same level in the tree. The cursor changes to a black right arrow () if the object can be moved to the cursor location, or a red circle with a diagonal line (
) if it cannot.
Keyboard Shortcuts
To speed up your workflow, both Surfer and Grapher support keyboard shortcuts to move selected objects forward, backward, or directly to the top or bottom of the stack:
| Action | Shortcut |
|---|---|
| Move to Front | Shift + Page up |
| Move to Back | Shift + Page down |
| Move Forward | Ctrl + Page up |
| Move Back | Ctrl + Page down |
|
|
Golden Nugget: Always keep legends, custom callouts, and inset graphs at the top of the list to ensure they remain clear, legible, and unobscured. |
Drawing Order in Surfer
The following sections reference specific sample files, which are included with Surfer
Several sample files are included with Surfer. The majority of sample Surfer files are located by default in: C:\Program Files\Golden Software\Surfer\Samples.
Order within a map
The example file Transparent.srf provides a good demonstration of how moving objects up and down the list in the Contents window changes the look of the map in the Plot window.
First, update line thicknesses to make the drawing order more visible:
- In the Contents window, select Hydrology.
- In the Properties window, select the General tab.
- In the Properties section, expand Line properties.
- Set the Width field to 0.02.
- In the Contents window, select Transportation.
- In the Properties window, select the General tab.
- In the Properties section, expand Line properties.
- Set the Width field to 0.02.
Then moving the following objects up and down the list in the Contents window to see how order affects the render sequence in the Plot window:
- Transportation (yellow lines)
- Hydrology (blue lines)
- USGS Urban Area (satellite image)
|
|
|
Drawing Order in Grapher
Grapher uses an Object Manager where plots, axes, legends, titles, and drawn shapes reside in a strict top-to-bottom hierarchy. Sample files are located by default in: C:\Program Files\Golden Software\Grapher\Samples.
Order within a graph
In the samples folder, the file River Data.gpj provides an example of how moving objects up and down in a Graph alters rendering order. Try moving these objects to see the changes in the Plot window:
- Monthly Average
- Actual > Average
- Monthly Precipitation
|
|
|
Grouped objects and different graphs in the same plot
The sample file Contour Frame.gpj demonstrates how moving grouped objects up and down in the Object Manager changes the presentation in your plot window.
First, update an opacity setting to make the drawing order more visible:
- In the Object Manager, select Elevation Distribution.
- In the Property Manager, select the Fill tab.
- Set the Foreground opacity field to 100%.
- In the Plot window, move the Contour Map and Histogram so that they overlap.
Then try moving the following objects up and down the list in the Object Manager to see how order affects the drawing sequence:
- Histogram | Y Axis 1 (makes grid lines appear over the histogram bars)
- Swap Contour Map and Histogram
|
|
|
Comments
Please sign in to leave a comment.