8.5.1 Controlling the Graph Axis Display Range


You can change the graph axis display range manually using the From and To settings on the Scale tab of Axis dialog box (General 2D and 3D graphs). Several other operations -- notably the Axis Zoom In shortcut menu command and the Scale In/Scale Out buttons (Tools toolbar) -- also change the graph axis display range, while simultaneously changing the From and To settings in the Scale tab.

Controlling axis scale values manually

When you plot data from the worksheet or import data into a graph window, the graph layer's axes are automatically scaled to include all data points in the data plot. By default, Origin graph templates automatically determine minimum (From) and maximum (To) axis values by padding the minimum and maximum dataset values by 8%.

To change the axis scale range:

  1. Double-click on the X, Y, or Z axis to open the respective Axis dialog box.
  2. Select the Scale tab.
  3. Select the axis icon from the left panel.
  4. Type your starting axis scale value in the From text box.
  5. Type your ending axis scale value in the To text box.
  6. Click Apply or OK.

To change the padding of minimum and maximum dataset values, change the value in Rescale Margin(%) text box.

Changing the axis scale range with the Axis Zoom menu commands

To change the axis scale range:

  1. Decide which axis scale value you want to zoom in on.
  2. Right-click on that axis tick label.
  3. Choose Axis Zoom In from the shortcut menu.

Origin rescales the axis so that the axis scale value that you chose in step 1. displays near the center of the graph axis. This narrows the range of the From and To values in the Axis dialog box. Note that this is similar to changing the axis scale using the Center shortcut menu command (see below).

To return the axis scale to its full range: Note that the shortcut menu item, Axis Zoom Out has the effect of expanding the scale range. However, to show all data and return to the original scale values:

  1. Right-click on the axis tick labels.
  2. Select Rescale to Show All from the shortcut menu or click the Rescale button on the Graphs toolbar.

Changing the axis scale range with the Scale buttons (Tools toolbar)

  1. Click once on the Scale In button Button Zoom In Tool.png (Tools toolbar).
  2. Drag out rectangle(s) around the region of the graph that you want to enlarge. Once you release the mouse button, the axes rescale to display only the selected region.

You can enlarge continuously to finally view the specific axis range you want. Then, press ESC key to escape the magnifying mode.

To return the previous axis scale:

  1. Click once on the Scale Out button Button Zoom Out Tool.png on the Tools toolbar.

To return the axis scale to the full range:

  1. Click several times on the Scale Out button Button Zoom Out Tool.png on the Tools toolbar.
  2. click the RescaleButton Rescale New.png button on the Graph toolbar.

Note: These Scale In/Scale Out buttons alter the From and To Scale tab settings while the View: Zoom In and Zoom Out menu commands simply change the view of the graph page without altering the minimum and maximum axis scale values.

Note: Press down on the Ctrl key and then click Scale In button. Drag out a rectangle to select a region of graph and a graph window named "Enlarged" will be created to show the region in detail. This works on 2D graphs and will even work on a graph that has multiple linked layers as long as the layers are overlapped and share a common axis (% of Linked Layer has Left/Top set to 0 and Width/Height set to 100, plus Straight (1 to 1) linking to the parent layer).

Changing the axis scale range with the Rescale Tool

To change the X axis scale range:

  1. Click the Rescale Tool button Button Rescale Tool.png and press Z, or simply press Z.
  2. Use the mouse wheel or +/- keys to change the horizontal axis scale range.


To change the Y axis scale range:

  1. Click the Rescale Tool button Button Rescale Tool.png, press Z and hold the Shift key down, or simply press Z+ the Shift key.
  2. Use the mouse wheel or +/- keys to change the axis scale range vertically.

Changing axis scale range with the Center shortcut menu command

To center your data plot on a particular axis scale value:

  1. Right-click on a tick label.
  2. Choose Center from the shortcut menu.

This alters the From and To values in the Axis dialog box.


To return the axis scale to its full range:

  1. Right-click on the axis tick labels.
  2. Select Rescale to Show All from the shortcut menu, or click the Rescale Button Rescale New.png button on the Graphs toolbar.

Disabling automatic range rescaling

You may want to exert manual control over axis values to prevent rescaling (as can happen when you add or remove data from the graph layer). You can partially or completely disable the automatic rescaling of axes:

  1. Double-click on the X, Y, or Z axis to open the respective Axis dialog box.
  2. Select the Scale tab.
  3. Select the axis icon from left panel.
  4. Select the rescale mode from the Rescale drop-down list.


Fixed

The axis is not rescalable. If you try to change the scale or perform an operation which changes the scale (for example, using the Scale In tool), Origin preserves the From and To values.

If both axes in a 2D graph layer are set to Fixed, using the Scale In tool Button Zoom In Tool.png opens a dialog box asking if you want to change to Normal mode and rescale. Click Yes to temporarily override the scaling restriction.

Normal

The axis is rescalable. Change the axis scale and use the Scale In tool Button Zoom In Tool.png without restriction (2D graphs).

If you are adding or removing datasets from the graph using the Plot Setup or Layer Management dialogs, you will need to select the Rescale check box in those dialogs, if you want to automatically adjust scales on data change.

Auto

This option is similar to the Normal option, but allows Origin to automatically scale the axis to accommodate plotted data (no need to select the Rescale check box in Plot Setup or Layer Management, for instance).

Fixed From - Normal To The From value of the axis is fixed and can only be changed by editing the From text box value in the Axis dialog box, while the To value of the axis is in Normal mode.
Normal From - Fixed To The From value of axis is in Normal mode, while the To value of the axis is fixed and can only be changed by editing the To text box value in the Axis dialog box.
Fixed From - Auto To The From value of axis is fixed, while the To value of axis is allows Origin to automatically rescale.
Auto From - Fixed To The From value of axis is allows Origin to automatically rescale, while the To value of axis is fixed.

Rescaling axes to display data that extend beyond the current axis scale range

Use this to reset the axes scale values so that all the data included in the active graph layer are displayed. This operation may be needed when datasets whose minimum and maximum values fall outside the current range of axis values are added to the layer contents, or when the worksheet display range is modified.

To reset the axes scale values:

  1. From the menu, select Graph: Rescale to Show All.

or

  1. Click the Rescale button Button Rescale New.png on the Graph toolbar.

The operation has no affect on the Speed Mode setting which reduces the number of points in a data plot by plotting only every nth data point in the data set. The rescale operation resets axis scale values only.

Note:

  1. If you have selected Manual from the Rescale drop-down list as explained above, Origin asks you if you want to override the manual rescale setting. If you click No, the axes will not rescale to show all the data.
  2. From Origin 2018b, if you have multi-layer graph and layers are linked, clicking the Rescale button will rescale the axis ranges of all linked layers, no matter the axes are linked or not, or which layer are active.