Important updates to Golden Software support policy and benefits

Dual Device Activations • Expert Technical Support • 1:1 Guided Zoom Sessions

Understanding Drawing Order: Mastering Drawing Order in Surfer and Grapher

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

How to Reorder

Drawing Order in Surfer

Order within a map

Drawing Order in Grapher

Order within a graph

Grouped objects and different graphs in the same plot

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.

levels.png
In this Surfer example there are 3 levels to the tree hierarchy. 

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.

example_object_manager_maplayers_explained.png
Surfer | This one map object contains four map layers. There is a base layer, watershed layer, contour layer, and a color relief layer.
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.

example_property_manager_plots_explained.png
Grapher | The one graph Object contains four plots. There is one Box Plot, and three Line Plots

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.
CardStacking.gif
Animated GIF showing how dragging layers in the Contents window / Object Manager dynamically updates the canvas drawing order.

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 (InsertArrow.png) if the object can be moved to the cursor location, or a red circle with a diagonal line (CantMove.png) 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
Your Image

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:

  1. In the Contents window, select Hydrology.
  2. In the Properties window, select the General tab.
  3. In the Properties section, expand Line properties.
  4. Set the Width field to 0.02.
  5. In the Contents window, select Transportation.
  6. In the Properties window, select the General tab.
  7. In the Properties section, expand Line properties.
  8. 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)
Surfer-order-THU.png
Surfer-order-HTU.png
Surfer-order-UHT.png
  • Transportation
  • Hydrology
  • USGS Urban Area
  • Hydrology
  • Transportation
  • USGS Urban Area
  • USGS Urban Area
  • Hydrology
  • Transportation

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
Grapher-order-MP-MA-AA.png
Grapher-order-MA-MP-AA.png
Grapher-order-MA-AA-MP.png
  • Monthly Precipitation
  • Monthly Average
  • Actual > Average
  • Monthly Average
  • Monthly Precipitation
  • Actual > Average
  • Actual > Average
  • Monthly 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:

  1. In the Object Manager, select Elevation Distribution.
  2. In the Property Manager, select the Fill tab.
  3. Set the Foreground opacity field to 100%.
  4. 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
example_heyc.png
example_hyec.png
example_chye.png
  • Histogram
    • Elevation Distribution
    • Y Axis 1
  • Contour Map
  • Histogram
    • Y Axis 1
    • Elevation Distribution
  • Contour Map
  • Contour Map
  • Histogram
    • Y Axis 1
    • Elevation Distribution
Was this article helpful?
...

Comments

0 comments

Please sign in to leave a comment.