8.6.3 Object Attachment and Scaling


When you add a text or drawing object to an Origin window, the object is attached to the graph by one of three methods:

Object Attachment and Scaling-01.png

The object attachment method has implications for various graphing operations -- most notably those operations which resize the layer or change the axis scale range. The following material applies to text or drawing objects added to any Origin window, but is most relevant to those being added to graph windows.

Contents

Default Object Attachment Methods

When the object is created, the default object attachment method (Page, Layer Frame or Layer and Scales) is determined by:

Layer Frame Tolerance.png


In general ...

Object Type When Created
Inside or Slightly Outside the Layer Frame,
Attached to...
When Created
Well Outside Layer Frame,
Attached to...
Text Layer Frame Page
Rectangle, Circle, Polygon, Region, Polyline, Freehand Layer Frame Page
Arrow, Line, Curved Arrow Layer and Scales Page


Once an object has been created, you can change the attachment method by editing the Attach To drop-down in the object's Properties dialog box (see next).

Changing Default Object Attachment Method when Create an object INSIDE or SLIGHTLY OUTSIDE the Layer Frame

Choose and set following system variables according to the object type:

System Variables Object Type Values
@AR Arrow, Line, Curved Arrow

0 = Attach to Layer Frame
1 = Attach to Layer and Scales

@ARX Text

0 = Attach to Layer Frame
1 = Attach to Layer and Scales

@ARR Rectangle, Circle, Polygon, Region, Polyline, Freehand

0 = Attach to Layer Frame
1 = Attach to Layer and Scales

Changing a Label Object's Attachment Method

To edit an object's attachment method, open the object's Properties dialog box:

  1. Right-click on the object and choose Properties from the shortcut menu; or select the object and choose Format: Object Properties from the main menu.
  2. Click the Programming tab and set the Attach To drop-down.

Attachment Method and Scaling of Objects

As a reminder, all objects, regardless of attachment method, are associated with a graph layer (generally the layer that was active at the time of object creation). Delete or hide the layer and the all associated objects are deleted or hidden, as well.

Plot Details and the Scale Elements Group

The Plot Details dialog Display tab has controls for Scaling Elements:

  1. With the graph active, click Format: Layer, then click the Size tab.

When Scaling Matters

Scaling is potentially a concern any time that you change the size of the layer frame. This might be a manual drag-with-the-mouse change to a single layer; or it can arise when you Merge separate graphs into a multi-panel graph, or you use Extract to Graphs to extract graph layers to separate panels.

In most cases, Origin tools such as the Merge Graph dialog box (Graph: Merge Graph Windows) offer enough control to get satisfactory spacing of layers and scaling of graph elements (Note that there is a Scale Elements group in this dialog).


To prevent objects from moving or resizing when you move or resize the layer, you could the Page attachment method. The object will still be included in the layer that was active when the object was created -- hence if you delete the layer, the object is also deleted -- but the object's size and position will be unaffected by changes to the size or position of the layer.