12 Customizing Graphs


Grand image customizing graphs3.png

Introduction

This chapter introduces you to various aspects of graph customization. All Origin graphs start from a graph template. If the graph you are making is fairly standard for its type, the options that were stored in the graph template may be entirely adequate to produce a polished-looking graph. The business of basic graph creation was covered in the last chapter, Graphing.

Sooner or later, however, you are going to want to add annotations, modify axis scales, or change plot colors. Hence, the purpose of this chapter is to introduce you to some key Origin graph customization tools and techniques, as well as to point you toward resources that will help you manage more complex graph customization tasks.

We begin with a discussion of the graph customization-related toolbars, as these toolbars have tools that are commonly used for quick modifications of graph elements.

Mini Toolbars

Most 2D and Contour plots now support a set of "quick editing" tools for interactively modifying common graph object properties. Tools are context-sensitive so that -- (1) depending on where you click inside the graph window, (2) what the selected object is and (3) whether you have selected an individual plot or a plot group -- you will have a different set of tools available to edit your selection.

UG Mini Toolbar Concept smaller.png
  • There are five levels -- i.e. five groupings of graph properties -- that can be edited with Mini Toolbars: page, layer, plot, text or drawn objects and graph axes.
  • When editing grouped plots, a single click will select a single plot. The Mini Toolbar displays two tabs -- one for the customizing the group, the other for customizing the single plot.
UG group vs single.png
  • Most Mini Toolbars have a "properties" Button MT Properties.png button that opens a related Origin dialog box where you will find the full range of available controls.

Unless you have changed your selection, you can do a one-time restore of a Mini Toolbar after it has faded by pressing the SHIFT key.

A number of object properties -- font size, symbol size, rotation angle, etc. -- are incremented by clicking a Mini Toolbar button. Origin 2021 let's you modify the increment by changing the value of a specific LabTalk system variable.

Object Mini Toolbar Buttons System Variable Default Increment
Symbol Size UG MT INCSS.png @INCSS 1
Line Thickness UG MT INCLT.png @INCLT 1
Font Size UG MT INCFS.png @INCFS 1
Tick Label Rotation UG MT INCTLR.png @INCTLR 15
Text Object Rotation UG MT INCTOR.png @INCTOR 90
Graph Object Rotation UG MT INCGOR.png @INCGOR 45
Tick Length UG MT INCTL.png @INCTL 1
Pie Rotation UG MT INCPR.png @INCPR 10
Doughnut Hole Size UG MT INCDHS.png @INCDHS 5
Break Length UG MT INCBL.png @INCBL 1
Break Gap UG MT INCBG.png @INCBG 15
Spacing Gap (column, doughnut, box) UG MT INCSG.png

(Example from Doughnut Chart)

@INCSG 5

You can check the increment value of a particular button by hovering on it. The Status Bar reports the current increment and the LabTalk system variable that you can modify to change the increment.

UG MT INCVARS status bar.png

For information on changing the value of a LabTalk system variable see FAQ-708 How do I permanently change the value of a system variable?.

Toolbars

Toolbar buttons useful for graph-customization tasks:

Description Toolbar
(default configuration)
Format toolbar buttons:
  • Creating and customizing text objects.
Format bar.png
Style toolbar buttons:
  • Editing colors, line thickness, fill patterns.
Style bar.png
Tools toolbar buttons:
  • Add text objects, lines, curves, arrows, rectangles/circles/polygons.
Tools bar.png
Graph toolbar buttons:
  • Add graph layers incl. inset graphs, merging or extracting graphs; exchanging axes; anti-aliasing and Speed Mode.
Graph toolbar 92.png
Add Object to Graph toolbar buttons:
  • Add legends/color scales/bubble scales; date & time and project path stamps; XY scale; table objects.
Add Object to Graph Toolbar.png
Object Edit toolbar buttons:
  • Arranging and aligning objects and layers on the page.
Object Edit bar.png

Menus, Dialogs and Buttons Used in Graph Customization

Many quick graph customizations can be done using Origin's graphing Mini Toolbars. More complex customization options can be accessed from commands on the Format or Graph menus. The following table lists key menu commands and dialog boxes plus a few toolbar buttons, used in customizing graphs.

Task Dialog Name Method
Customize the graph Page, Layer, or Data Plot

Plot Details dialog

  • Double-click on Page, Layer or Data Plot
  • Format: Page... menu
  • Format: Layer... menu
  • Format: Plot... menu

See, Customizing Page, Layer and Data Plots

Customize Axes

Axis Dialog

  • Double-click on axes or tick labels
  • Format: Axes... menu
  • Format: Axis Tick Labels... menu
  • Format: Axis Titles... menu

See, Customizing Graph Axes

Add a Default Legend (most 2D graphs)

N/A

  • Click the Reconstruct Legend (CTRL+L)New Legend.png button on the Add Object to Graph toolbar
  • Right-click on the legend object and choose Legend: Reconstruct Legend
  • Choose Graph: Reconstruct Legend from the main menu

See, Graph Legends

Customize the Legend

(Text Object -) Legend dialog

  • Ctrl + double-click on the legend object text

See, The (Text Object Properties) Text tab

Update Legend dialog

  • Right-click legend and choose Legend: Update Legend or choose Graph: Legend: Update Legend...

See, The legendupdate Dialog Box

Legends/Titles tab at Page level of Plot Details dialog

  • Double-click in the white area just inside graph window frame (but outside of the data plot), then click on the Legends/Titles tab
  • Choose Format: Page and click on the Legends/Titles tab

See, The (Plot Details) Legends/Titles tab

Add a Color Scale (color-mapped plots)

N/A

  • Click the Add Color ScaleAdd color scale button.png button on the Add Object to Graph toolbar

See, Color Scales

Add a Bubble Scale (symbol-size mapped plots)

N/A

  • Click the Add Bubble ScaleButton Add Bubble Scale.png button on the Add Object to Graph toolbar

See Bubble Scale

Merge multiple graph windows into one graph window

Merge Graphs dialog

  • Graph: Merge Graph Windows... menu

See, Merge and Arrange Graphs (tutorial) and The Merge Graph Dialog Box.

For clarity, the label on the control that opens the dialog from which you pick your graphs-to-merge -- the Graph Browser -- has been changed from an ellipsis ("...") to "Graph Browser".

Layer level customizations: resize, move, swap, align, or add layers

Layer Management dialog

  • Graph: Layer Management... menu

See, Layer Management-Quick Start

Save settings as graph template

Save Template As dialog

  • File: Save Template As... menu
  • Right-click graph window title and choose Save Template As...

See, Graph Template Basics

Manage graph templates, add plots to a template

Template Library
(custom graph templates)

  • Plot > My Templates: menu (worksheet is active)

See, The Graph Template Library

System Templates
(built-in graph templates)

  • File: New: From Template menu then click the Graph radio button and set Path = Origin Program Folder

See, System Templates

Save settings as graph Theme

Save Format as Theme dialog

  • Right-click and choose Save Format as Theme... context menu (graph is active)

See, Saving Formats to a Theme

Manage Graph Themes: edit, combine, apply Theme, set as System Theme

Theme Organizer dialog

  • Preferences: Theme Organizer.. > Graph tab.
  • F7 hotkey.

See, Theme Organizer

Customizing Page, Layer and Data Plots

A graph window is a collection of objects, organized in a hierarchical structure. As we shall see, there are editable properties at the page, layer and data plot levels.

Quick formatting of some graph properties can be done using toolbar buttons, as mentioned above. However, the vast majority of properties are customized via Origin's Plot Details dialog box. To open Plot Details, (1) double-click on your plot or (2) click the Format menu, then choose Page..., Layer... or Plot....

The figure below shows an example of the Plot Details dialog box:

  • The left panel depicts the Page > Layer > Plot hierarchy as an expandable/collapsible tree.
  • The right panel contains controls, organized by tabs, that pertain to the object that is currently selected in the left panel.
  • To customize an object, select it in left panel and modify the corresponding properties that appear on the various tabs in the right panel.
    PD customizing graphs 2.png

Selected Left Panel Object Right Panel, Controls for...
Page Settings that pertain to the whole page -- Print/Dimensions, layer drawing orders, page display color, legends/titles, etc.
Layer Settings that are specific to the graph layer -- Layer background colors, layer size and speed mode settings, layer display settings, stack settings for applicable plot types. Some plot types will include extra tabs/controls specific to the plot type.
MT Background Color Trans Buttons.png

Layer Background Image Control for Google Maps App

  • Support drawing background image before layer Background (set layer.bib=1;).
  • Mini Toolbar buttons for layer Background Color and Transparency.
  • When Background Color enabled and layer.bib=1;, adjust Transparency from Mini Toolbar.
  • Mini Toolbar buttons also work to set Background Color and Transparency when no background image exists and layer.bib=0; (default).
Plot Plot-specific properties. The tabs and controls vary by plot type (e.g. Scatter plots have a Symbol tab with controls pertaining to scatter symbols, Line plots a Line tab with controls pertaining to line plots). Anything to do with a particular data plot -- color, fill patterns, colormapping, labeling -- will be found at this level in Plot Details.
Data Point Properties that apply to user-specified "special points". Available for any plot for which plots discrete points (scatter, line + sybmol, column/bar, etc.). The tabs and controls are generally similar to those available at the Plot level but any property that you set at the level of a special point, will apply only to that point.


You can UNDO customizations made in the Plot Details dialog box. Click OK to close Plot Details and choose Edit: Undo Modify Page or press CTRL + Z.


:PD customizing graphs 1a.png

Prevent text and label objects from scaling when resizing layer, by going to the Size tab of Plot Details (Layer level) and setting Fixed Factor to 1.

There is a Layers tab at the Page Level in Plot Details. You can use these controls to apply customizations made to a graph layer and contained plots, to other layers and plots in the graph page. This feature is particularly useful for modifying stack or panel graphs. Previously, for instance, if you wanted to customize a 9-panel graph you had to customize each panel individually. Now, you can apply multiple customizations to all plots, simultaneously. For more information, see The (Plot Details) Layer Tab.

Plot Details common diisplay.png

Customizing Grouped Plots

Beginning with Origin 2020, there was a change in selection behavior that affects grouped plots. Now, a single-click on a plot selects the plot. A second click (or CTRL+click) selects a single point. SHIFT+click selects the entire group. Note that when using the new mini toolbars, a single click on a plot group displays tools for editing the plot group or the single, selected plot. To revert to the old plot selection behavior, set @GSM=0.

UG group vs single.png

When you select and plot multiple data ranges to a single graph layer, the plots are grouped in the layer. Generally speaking, plots within a group are automatically differentiated by assigning styles built from one or more customizable "increment lists", one for each plot property (symbol shape, symbol color, line style, etc.).

By default, some properties are configured to increment "by one" (e.g. line color is assigned according to the "Candy" color list and each successive plot is assigned the next color in the list) and some will be configured not to increment (e.g. line style is solid for every plot), though this is ultimately controlled by the user. In any case, the increment lists for each property are saved with the graph template (.oggu) or Theme file (.oth) so that you can easily use them later to create graphs with the same look.


PD Group tab 2015.png


The above image shows the Plot Details Group tab settings for a line + symbol plot in the upper-left. On this Group tab, the first column lists Line Color, Symbol Type, Line Style Symbol Edge Color and Symbol Interior. Properties of Line Color, Symbol Type and Symbol Edge Color are set to increment By One and Between Subgroups (subgrouping occurs using the column Comments), while Line Style and Symbol Interior are set to increment by None (they do not vary).

As previously mentioned, this arrangement is completely customizable and you can save customizations with the graph template:

Using Object Manager with Grouped Plots

  • To highlight a single plot and dim others (grouped or ungrouped) in the layer, click once on the plot in Object Manager. Conversely, clicking once on a plot in the Object Manager, highlights the plot in the graph window, while dimming others.
OM plot highlight.png
  • To reorder plots in the layer, drag a plot icon within the group; or right-click on the plot (in Object Manager) and choose Move Up or Move Down.
OM reorder plots.png
  • To group or ungroup data plots in the layer, right-click on the group icon ("gN") and choose Ungroup. To group plots in the layer, right-click on a plot and choose Set as Group Begin.
OM group ungroup.png
  • To move a plot from one group to another, drag the plot to the other group.
  • To move a series of plots out of the group, right-click the last plot that you want to keep in the group and choose Set as Group End.
  • To remove a plot from the layer (and the graph), right-click on the plot and choose Remove.
  • To move a plot to a second Y axis, or move the plot to another layer, right-click on the plot in Object Manager and choose Move Plot to Second Y Axis or Move Plot(s) to Other Layer ....

Improved Handling of Properties When Grouping Plots with Object Manager:

UG OM Set Begin Group Increment.png
  • When you group a collection of plots by Set as Group Begin/End, Origin will create increment lists on the fly and display them on the Group tab of Plot Details. From this tab, you can right-click on any list (e.g. Fill Color) and Save Increment List.
  • If all plots share a common property (e.g. colors from the same color list), the no incrementing is done (i.e. the current color of each plot is kept).

Customizing Multi-layer Graphs

The graph layer is a fundamental concept in Origin and it is a primary building-block of most complex Origin graphs (e.g. a graph with both left and right Y axes is constructed by overlaying one layer on another, and sharing a common X axis between the two layers). While the graph layer is, fundamentally, a self-contained unit it is, at times, desirable to create dependencies between layers:

  • One type of dependency is what we call "linking" of layers, which involves establishing spatial relationships or relationships between axis scale values. You can read more about linking graph layers, below.
  • Another type of dependency is based on what we call "common display" and this is most useful in a situation where we have multiple similar panels in a graph and we want to do something like change the background color of each graph, or perhaps the change plot colors used in each layer.


At the graph page level in Plot Details, you will find a Layers tab that has controls that affect all layers within a given graph page. The Common Display controls can be used to enable simultaneous editing of layer, plot and axis properties of multi-layer graphs. For instance, in the following example, we have a two-layer trellis plot -- the two layers being necessitated by there being a left-Y axis and a right-Y axis with two completely different scales -- and as a simple illustration, we have used the Common Display controls to simultaneously add a background color to both layers. We could have accomplished the same thing without using the Common Display controls but this would have required twice the work -- set the background color of layer 1, then set the background color of layer 2.

User guide common display controls.png

This was a simple illustration but we can use the Common Display controls for application of more complex mix of layer, plot and axis properties. Some of Origin's built-in multi-layer graph templates have Common Display elements turned on by default. When working with multi-panel graphs, you may want to choose Format: Page, click the Layers tab in Plot Details, and check the Common Display settings. See Common Display for more information.

The Common Display Apply to control supports including or excluding certain layers from common display customizations. For instance, you might have a 4 panel graph, each with an inset layer and using this control, you could apply a common background color to the inset layers without applying the same background color to the 4 primary layers (panels). See Common Display for more information.

Special Points: Customizing a Single Data Point

For some plot types such as scatter, column or pie, you can modify the display properties of a single data point.

To edit a single point:

  1. Click twice (slowly) or press CTRL + click on a data point to select it. Use the Mini Toolbars to edit properties of the data point; or click available buttons on the Style or Format toolbars.
  2. For access to a wider range of customization options, (a) double-click on the selected point or (b) CTRL + double-click on an unselected data point. This opens the Plot Details dialog box with the focus set to edit the data point (identified in the left-panel of Plot Details by its row index number). Then use controls on the tabs in the right panel to modify the appearance of the data point, add drop lines, data label, etc. Changes you make to the special point will not affect the appearance of other points in the same plot.
PD point-edit mode.jpg



Note:: When the Custom Construction box is checked, you can use these controls to customize the plot symbol of the selected point. Custom Construction can be applied to any plot symbol -- not simply those that are designated as special points.

PD point-edit mode ALT.jpg

Beginning with Origin 2021, you can use Unicode characters as plot symbols when Custom Construction is enabled. UG Custom Plot Symbol Unicode.png


To remove customizations made to a single data point:

  • Right-click the single point in the left panel of the Plot Details dialog and choose Delete.
  • In the graph window, click on the single point to select it, then press DELETE on the keyboard.

The point itself is not deleted; only the custom style is removed, with the point reverting to the style of the containing data plot.

Adding a special point at the beginning or end of a plot is not always easy, as for instance with a line plot of many data points. To help with this, Origin 2021 adds a simple, foolproof technique:

  1. Select a special point anywhere on the plot, then double-click on the point to open Plot Details.
  2. In the left-hand panel of Plot Details, click once on on the point index number and wait until the index number becomes editable.
    Special point begin end.png
  3. To add the special point to the first point in the plot, type Begin; to add to the last point type End. If you know the index number of the first or last point, you can type that instead.
  4. Click outside the edit box. Make other special point customizations as needed, the click Apply or click OK to close Plot Details. The special point will be added to the beginning or end of your plot.

Customizing Graph Axes

Many common edits to axis properties can be done quickly from Mini Toolbar buttons. For more complex edits of axis properties, use controls in the Axis Dialog.

Two zero control check boxes were added and turned on by default for Origin 2020b:

  • Zero is '0'
  • No Trailing Zero

Beginning with Origin 2021, these options are turned OFF by default.

Customizing Axes with Mini Toolbars and Dialogs

For quick and simple adjustments to axes properties, you can use Origin's graph-editing Mini Toolbars. As with all Mini Toolbars, available tools will vary by plot type and selected object.

This image shows buttons available for editing of a selected graph axis in a contour plot.

UG Mini Toolbar Axes.png

Note that for graph axes, clicking the settings button (the "gear") produces a popup menu with simplified "Mini Dialogs" for Grid Lines, Reference Lines, Special Ticks and Axis Breaks. For full access to axis controls, click on Axes Dialog.

Customizing Axes with the Axis Dialog Box

All graph axis customizations can be made in the Axis Dialog box. Double-click on the graph axis or tick labels to open the Axis Dialog - Layer N dialog box.

Rug Plots are a one-dimensional density plot. You can add "rug marks" to the graph axes of many 2D graphs by double-click on the graph axis, clicking the on the Rug tab and checking the Show box.

Customizing graphs rug marks.png


This image shows the tab-based axis dialog used by most 2D and 3D graphs.

Axis dialog box.png

In the left panel, you can select one or more icons (hold the CTRL key to select multiple icons) to specify the axis or axes to be customized, then select the desired tab and choose your options.

Tab Controls for
Scale Scale range of values, scale type, rescale mode and margin, reverse scale, major and minor ticks.
Tick Labels Display and Format options for major and minor tick labels, including custom labeling using LabTalk substitution or mathematical expression. For information on custom formatting of numeric data including display of percentages, fractions, pi, and geographic (Lat/Lon) formats, see Origin Custom Formats.

Origin 2021 supports aligning tick labels to the left, right or center of the tick label block.

Title Axis title (often set using variable notation) and font options. Note that you can directly edit by double-clicking the text object in the graph.
Grids Control display and properties of grid lines at major and minor ticks.
Line and Ticks Global axis line and tick display options for all axes.
Special Ticks Placement of special tick labels.
Reference Lines Reference lines are optional lines that you add to your graph, either for emphasis or to mark some key statistic. Additionally, they can be paired to add fill color to some portion of your graph (e.g. "recession bars" in plots of financial data).
Breaks Enable line breaks and configure each break.

Click the Apply To... button to apply the axis format settings of the currently selected axis to another axis.

Note: For more information on axis customization and for axis controls for specialized graph types (e.g. polar, ternary, radar chart.etc), refer to:

Help: Origin: Origin Help > Graphing > Graph Axes

Customizing Data Plot Colors

Origin ships with a number of installed color lists or palettes. If you prefer to create your own color lists or you have a standard set of palettes and want to port them over to Origin, there are a number of tools available in the software for doing that (see the Color Manager for more information).

Origin 2021 simplifies defining of custom colors:

  • A "+" symbol on empty well in the custom colors popup cues the user to click on it to define a color.
  • The custom color popup supports direct entry of HTML codes to create custom colors. This applies to both the Custom Colors popup that is part of the Color Chooser and to the Build Color List dialog in Color Manager (see #4, next).
UG Custom Add HTML Color.png

Color Manager

UG Color Manager Dialog.png

The Color Manager is a new dialog for importing, creating and organizing the color lists and palettes that you use in Origin:

  1. Click these radio buttons to display installed Color Lists or Palettes
  2. Click Import from Web to open a dialog where you can specify a URL to install palettes. Support for Scribus (.xml), Office Color Table (.soc), Adobe Color (.aco), Adobe Color Table (.act), Adobe Swatch Exchange (.ase) and JASC PaintShopPro (.pal).
  3. Click to install locally-stored palettes. Support for Scribus (.xml), Office Color Table (.soc), Adobe Color (.aco), Adobe Color Table (.act), Adobe Swatch Exchange (.ase) and JASC PaintShopPro (.pal).
  4. Click to open the Build Color List dialog where you can build a color using a number of tools: using standard color controls, direct entry of HTML codes or use an eye-dropper tool to pick onscreen colors.
  5. Right-click on the Available list to Delete or Rename lists (you can also rename by clicking directly on the name). Lists that are dimmed have already been Selected for GUI. Those that are Selected for GUI appear from drop-down lists throughout the user-interface -- in Plot Details, from the Fill Color button Button Fill Color.png on the Style toolbar and from the Mini Toolbar Fill Color button UG Fill Color MT.png when a plot or special point is selected.
  6. Use the list control to set Category = Undefined, Sequential, Diverging or Qualitative.
  7. Use these controls to add or remove color lists and palettes from the user-interface (GUI).
  8. Use these controls to move a selected list or palette up or down in the various GUI color lists.
  9. Click Set Default Plot Colors to open the Theme Organizer's System Increment Lists tab, where you can set default colors for use in your plots.
  10. Drag list-number icons to rearrange GUI color list order.

Applying Color to Your Graphs

There are many options for applying color to your graphs. We will try and cover the basics here, pointing you to other resources for more in-depth discussion.


List of key topics on the subject of plot color:

Applying Colors Singly

Applying colors singly simply means applying a single color to a plot as opposed to applying color from a color list to a series of plots. It is the most basic way to apply color to a single plot or special point. Simply select a color well from anywhere on the Single tab -- from the LabTalk colors at the top, from a selected color list, or from a custom or recently used color.

UG ColorChooser Single.png
  • Select a plot (e.g. scatter plot) and click the Fill Color button on the Mini Toolbar that appears.
  • Select a plot and click the Fill Color button on the Style toolbar.
  • Double-click on a plot to open the Plot Details dialog box where you can click on a tab to the right side (e.g. Symbol tab for a scatter plot) and set color for the element.
  • To create a special point -- i.e. to assign special characteristics to one data point in your plot -- press Ctrl+click to select the point, then use the Mini Toolbar, Style toolbar or Plot Details controls to customize color for that point.
    UG single plot color.png

Applying Colors By Points

Applying colors By Points generally means applying a color to each point in a plot by one of several schemes. The simplest involves picking an Increment From color from a predefined color list and assigning colors, in sequence, to each point in the plot.

UG ColorChooser By Points.png

As in the case of applying a single color, you can apply these settings using controls in Plot Details; or by selecting the plot and using the Fill Color buttons on the floating Mini Toolbar or Style toolbar docked to the top of your workspace.

Other schemes typically make use of a column of values to assign color to points:

  • Indexing assigns point color by associating an integer or text string (categorical value) to different colors in a list.
  • Direct RGB assigns color using a value derived from columns of RGB values.
  • Color Mapping -- used for 2D, Contour and 3D plots -- assigns colors in a list or palette, to values across the range of the plot's Y or Z values.

There are several other schemes which are specific to a certain plot type (or family of plots), but the list above covers most of what you will use. For more information see Using a Dataset to Control Plot Color.

A new Flip Colormap Mini Toolbar button is added for 2D colormapped and contour plots.

UG MT Flip Colormap.png

Applying Colors By Plots

You apply color By Plots when you want to assign differentiating colors to a series of plots. Typically, this series of plots comprises a "plot group." In a plot group, plot attributes including color, are assigned to each plot by incrementing through a style list -- color, line-style, symbol shape, etc.

UG ColorChooser By Plots.png

Applying Colormaps to 2D, 3D and Contour Plots

Origin's Color List and Palette popup menus are now more dynamic. Previously, the list was read only at startup. Now, newly-added lists and palettes display and can be used immediately.

While you can use a color list with a contour or 3D plot, it is probably more common that you will use a color palette. This allows a wider range of color variation and can add realism to to 3D surfaces and 3D function plots.

UG Color Palette 3D Realism.png

In Origin 2021, you can add new color palettes to Origin by drag-and-drop. Support for Scribus (.xml), Office Color Table (.soc), Adobe Color (.aco), Adobe Color Table (.act), Adobe Swatch Exchange (.ase) and JASC PaintShopPro (.pal).

Colormapping can also be applied to 2D plots. This allows you apply a greater range of color variation to data points than would be possible with incrementing or indexing. A good example of applying a color map to a scatter plot would be Origin's Density Dots plot in which, typically, thousands of scatter points are plotted and an algorithm is used to calculate point density and assign color to ranges of point densities.

UG colormapped 2D plot.png

Applying a colormap to a 3D or contour plot is much the same as applying color singly, by points or by plots. You select a plot -- then using the Palette button on the floating Mini Toolbar (contour only) or the Style toolbar. You pick a palette.

UG contour change palette.png

You can also use the controls on the Colormap/Contours tab of Plot Details. This tab gives many more options beyond simply picking and applying a colormap.

UG colormap contours controls.png


For more information on applying color to colormapped plots, including contour and 3D surfaces, see these topics:

Graph Legends

How the Default Legend is Created

A graph legend is automatically created when you plot data. For most 2D and some 3D graph templates, the default legend combines (A) plot style information stored with the graph template, with (B) dataset information stored in the worksheet column label rows, and places the resulting legend object on the graph page.

Customizing Graphs Default Legend.png


Note that the default legend object is not created with literal text and plot symbols but instead is created from LabTalk script.

  • This allows the legend object to be dynamically linked to plotted data and worksheet metadata, so that the legend can be updated when data or plot metadata change.
  • Because construction of the legend object relies on scripting rather than literal information, you can save customizations to a graph template and recreate the graph with its accompanying legend object using new data, as often as is needed.


The legend script relies on "substitution notation" to convert variable values to readable symbols and text. You can see this notation when you double-click inside of the legend object (as if to edit it).

Auto Creation of Legend.png
  • You control which dataset metadata are used in constructing the default legend text by setting the the Translation mode of %(1), %(2) list in the Legends/Titles tab of the Plot Details dialog box (Format: Page...).
  • Custom strings can be constructed using LabTalk substitution. Customizations can be saved to the graph template for repeat use.

Origin has a Fit Layers to Page tool that is useful for arranging a graph and a large, text-wrapped legend on the page.

Tips for Quick Legend Edits

Origin 2021 adds Mini Toolbars specifically for making quick legend edits. Each toolbar features legend-specific buttons plus buttons for text formatting.

UG MT Legend Buttons.png
  • Mini Toolbar for legend symbols.
  • Mini Toolbar for color scales (does not apply to 3D OpenGL graphs such as colormapped surfaces).
  • Mini Toolbar for bubble scales.

To format your legends using a Mini Toolbar:

UG MT Color Scale Buttons.png
  1. Select a legend or legend component (e.g. legend symbol). A Mini Toolbar with context-specific buttons will show.
  2. If the toolbar fades, you can restore it by pressing the Shift key.


Other legend editing tips:

  • Select the legend object, then right-click and choose Legend to open a shortcut menu with some useful commands including Text Color Follows Plot, Reverse Order, and Show Legend for Visible Plots Only (the same menu commands are available from Graph: Legend).
  • The same shortcut menu also has an Arrange in Vertical/Horizontal command for changing the legend aspect; or you can modify it interactively by selecting the legend object, then pressing CTRL while dragging a selection handle (e.g. drag horizontally to create a legend that is all on one line).
  • Double-click on the legend text to enter in-place edit mode (where you can manually overwrite the legend text).
  • CTRL + double-click the legend text to open the Legend dialog box. Here you can modify all aspects of the legend.
  • Double-click a legend symbol to open the Plot Details dialog box.
  • If you do not want a legend object added to your graph each time you create the graph, delete the legend object and re-save the graph template.

Adding and Updating the Default Legend

The table below lists tasks associated with adding or updating the graph legend, and where to find editing controls for each legend type. Before proceeding, we should point out that there are two legend refresh modes:

  • Updating a legend will preserve any customizations that you might have made to the existing legend, including size and position adjustments and legend symbol and text customizations.
  • Reconstructing a legend will overwrite any customizations. When you add or reconstruct the legend, you are creating a copy of the legend that is stored in the graph template.


In addition, the graph template stores a Legend Update Mode setting that determines how the legend is refreshed when adding or removing data plots from the graph. See Controlling Legend Update, below.


Task Method (graph is active)
Add or reconstruct legend
  • Graph: Legend: Reconstruct Legend menu.
  • Reconstruct Legend button Button New Legend.png (Add Object to Graph toolbar).
  • CTRL+L.

Legend customizations not saved with the template, will be lost when you reconstruct.

Update legend Open the legendupdate dialog box:
  • Graph: Legend: Update Legend menu.
  • Right-click on legend and select Legend: Update Legend.


Note: "Updating" a legend does not overwrite legend customizations.

Customizing special legends Right-clicking on these special legends opens a dialog box with customization options specific to each legend type:
Add color scale Only available for color-mapped plots (e.g Contour Plots).
  • Click the Add Color Scale button Add color scale button.png (Add Object to Graph toolbar).
  • Right-click in the layer and select New Color Scale.
  • Insert: Color Scale menu.
  • When you have multiple color-mapped plots in a single graph window, you can click on each plot to select it, then add a corresponding color scale.
Control color scale Available when a color scale object has been added to a graph. To open the Color Scale Control dialog:
  • Double-click on the color scale object.
  • Right-click on the color scale object and choose Properties.

Display of color scale head and tail levels can now be controlled independently, using check boxes on the Properties > Levels tab.

Add bubble scale Available for bubble plot, or when symbol size is controlled by a dataset.
  • Select Insert: Bubble Scale.
  • Right-click in the layer and select New Bubble Scale.
  • Click the Add Bubble Scale button Button Add Bubble Scale.png in the Add Object to Graph toolbar.
  • Right-click the legend to select Add Bubble Scale from the context menu.
Control bubble scale

Available when bubble scale object has been added to a graph. To open the Bubble Scale Control dialog:

  • Double click on the bubble scale object.
  • Right-click on the bubble scale object and choose Properties.

The legendupdate dialog box and the Legend/Titles tab at page level of Plot Details both have an Auto Legend Translation Mode drop-down that determines which worksheet metadata (e.g. column Long Name, Comments, etc.) is used to generate the legend text. For a list of Custom options, see Legend Substitution Notation.

Origin 2018 added an interface tool to manually Add Legend Symbols to the graph legend. Right-click on the legend object and choose Properties. Click the Add Legend Symbol button in the lower-right corner of the dialog box.

Add Legend Symbol.png
Note: For more information on creating and customizing graph legends, see:

Help: Origin: Origin Help > Graphing > Graph Legends and Color Scales

Controlling Legend Update

When a data plot is added or removed from a graph layer, the default behavior is to update the legend. The Legend/Titles tab at the graph page level in the Plot Details provides a Legend Update Mode drop-down to control this behavior.

The default setting Update when Adding only affects the legend display of data plots that are added or removed. Previous legend customizations to existing plots, such as literal text entered manually, will be maintained.

Tutorial: Customize legend and add data plots

  1. Start with a new project in Origin.
  2. Open Windows Explorer and navigate to the subfolder <Origin EXE folder>\Samples\Import and Export\
  3. Shift-select the files S15-125-03.dat, S21-235-07.dat, S32-014-04.dat and then drag-and-drop the files onto an empty Origin workbook. The three files will be imported into three separate workbooks.
  4. Click on one of the workbooks, select the column B, and create a line plot.
  5. Right-click on the legend and select Legend: Update Legend... to open the legendupdate dialog.
  6. Change the Auto Legend Translation Mode drop-down to Custom, and in the edit box that appears below, enter the string:
    @WS, @LD3
    and then press OK to close the dialog box. The legend updates, displaying the sheet name and the third user parameter.
  7. Click on the second workbook, select column B, move the mouse over the right-edge of the column until it changes to Drag and drop mouse.png, and then drag-and-drop this data onto the graph to create a 2nd data plot.
  8. Repeat the procedure with column B from the third workbook. The graph will now display three data plots, and the legend will automatically update to display the identifier for all three plots.
  9. Click on each individual curve and use the Style toolbar to set a different line color for each. The legend will automatically update and display the new line color.

GSB Legend Tutorial.png

Special Legend Types

As mentioned, Origin supports these specialized legends for use with specific graph types. These legends can be customized and updated similarly to the Data Plot legend used by most 2D graph types.

Legend Type Menu to Create Used in situations where ...
Legend for Categorical Values Graph:Legend:Categorical Values At least one plot attribute (e.g. color, symbol shape.etc) is controlled by data indexing.

See the Legend for Categorical Values help page.
Point by Point Legend Graph:Legend:Point by Point The plot symbol style is controlled by data indexing, an increment list, or color mapping.

See the Point by Point Legend help page.
Legend for Box Chart Components Graph:Legend:Box Chart Components The graph is a box chart, or a grouped box chart.

See the Legend for Box Chart Components help page.

Annotating Your Graph

When we speak of "annotating" a graph, we are talking about adding text or drawing objects to the graph. Generally, these "annotations" help to enhance the graph in some way -- add a page title, add an arrow to draw attention to some graph feature, label data points, add a date-time stamp to note the time of graph creation, etc.

Annotating a graph can be as simple as adding a static text object and formatting it with Format toolbar buttons. Or you might add a more complex object that is dynamically linked to a variable value or to some LabTalk script that is executed whenever some user-specified event occurs.

Origin 2021 adds these improvements to data labeling:

  • More flexible data labeling of grouped 3D plots. Previously, grouped plot labels followed settings of the first plot in the layer. Now, you can specify a different Label Form for each plot in the group.
  • Mini Toolbar button to apply customized formatting (Color, Font, Font and Size) of selected labels to This Layer or This Window.


UG MT data label format.png

  • Mini Toolbar button for Leader Lines opens a mini dialog for showing leader lines and setting line to label gaps.


UG MT Data Label Leader.png

UG legend substitution data label.png

The following table lists some common graph annotation tasks and available tools for accomplishing those tasks:

Task Method
Label Data Points and Plots
  • Choose Format: Plot ..., then click the Label tab and select Enable (not available for all plot types).
  • Alternately, select a plot and click the Show Data Labels button on the Mini Toolbar that pops up.
  • Format labels using controls on the Label tab of Plot Details; or select enabled labels on the plot and use Mini Toolbar buttons to format.
Add Text Objects
  • Click the Text Tool Button Text Tool.png button, then click on the graph to place the object.
  • Right-click on the graph and choose Add Text from the shortcut menu.
  • Double-click on text to do rich text editing.

The Mini Toolbars for formatting text objects, including graph legends, now have a Wrap Text button for wrapping longer lines of text:

  1. Select the text object and click the Wrap Text button so that a red check mark appears on the button. The check mark indicates that the function is enabled.
  2. Resize your text object using the selection handles and text should wrap.
  3. To place text on a single line, simply click the Wrap Text button again.
UG MT Wrap Text.png
Add Layer Title
  • Right-click on graph and choose Add/Modify Layer Title from the shortcut menu to add/modify layer title in active layer.
Add Vertical/Horizontal Line
  • With a 2D graph active, use the Insert: Straight Line... menu item.

This tool now supports using a simple LabTalk expression in the At Value field (e.g. "mean(plotdata(1,Y))" which translates to "mean of 1st plot's Y dataset") for positioning the line object. For more information see the discussion of At Axis Value.

Annotate a Data Point
Add Drawing Objects Use the corresponding toolbar buttons on Tools toolbar. Origin supports:
  • Arrow, Curved Arrow.
  • Line, Polyline, Curve, Freehand Draw.
  • Rectangle, Circle, Polygon, Region.
Insert Equation, Word Object, Excel Object, Other OLE Object
  • Insert Equation group on the Tools toolbar.

You can download a free App from the OriginLab File Exchange, for adding LaTeX objects to worksheets and graphs.

Insert Image
  • Right click on the graph and choose Insert Images From Files.
Add Table
  • Click the New Link Table Button New Link Table.png button on the Add Object to Graph toolbar and then click on the graph.
  • From the main menu, choose Insert: Table.
  • To edit the table, double-click the table object.

Origin 2021 adds a new Mini Toolbar for formatting table objects on graphs.

UG MT Table format.png
Insert Date & Time Stamp
  • Date & Time Button Date Time.png button on the Add Object to Graph toolbar.
Insert Project Path
  • Project Path Button Project Path.png button on the Add Object to Graph toolbar.
Add Bracket with Asterisk
  • To indicate statistical groupings, click the Add Asterisk Bracket Button Add asterisk bracket.png button on the Add Object to Graph toolbar. Manually adjust the size and placement of brackets by dragging handles on the object.
Add XY Scale This is useful when using a nonlinear xy scale.
  • New XY Scale button Button Add XY Scale.png and click on a graph layer.
  • Select Insert: XY Scaler.

Tips for Editing Your Graph Annotations

Beginning with Origin 2021, use Alt+Enter when creating multi-line text objects. To revert to using Ctrl+Enter to insert a line break, set @FCA=1.

  • Pressing CTRL when drawing with the Rectangle Button Rectangle Tool.png or Circle Button Circle Tool.png tools, will draw a square or circle (as opposed to a rectangle or ellipse).
  • Use Mini Toolbar buttons for quick edits to selected objects. For more complex edits, right-click an object and choose Properties to edit object properties and set defaults.
  • For text objects, including the axis titles, you can edit text objects directly in "In-place Edit" mode. Double-click on a text object to edit. Use the Format toolbar buttons to add superscript, subscript, and Greek characters.
  • Do NOT set font size while in "In-place Edit Mode" unless you need to mix font sizes. The correct way to change font size is to click the text object once so that the green selection handles appear, then select font size from the Format toolbar. If you set while in In-place Edit mode, Origin will not indicate the proper font size when you hover on the text object.
  • When you are in In-place Edit mode, you can right-click and choose Symbol Map to insert special characters into your text object.
  • You can insert the contents of a worksheet cell into a text object by copying and pasting the cell contents. While in In-place Edit mode in the text object, right-click and choose Paste or Paste Link from the shortcut menu. Pasted data is static; Paste Linked data is dynamic and will change if data in the linked cell changes.
  • Also, when in In-place Edit mode, you can right click and choose Insert Info. Variable... to insert information related to plotted data, into the text object. Since the pasted information is linked to a LabTalk variable value, the inserted data updates if the variable value changes.
  • You can insert variable values into a text object using the LabTalk %, and $ substitution notation by setting the Link to (%,$), Substitution Level to 1 in the text object's Properties dialog box, Programming tab. Right-click on the text object and choose Properties from the shortcut menu.
  • You can use controls on the Programming tab to associate LabTalk script with a text or drawing object (for instance, see Linking Text Labels to Data and Variables). Enter your script in the text box and specify a Script, Run After condition for running the script. Use the Apply to drop-down to set the scope for the script.
  • You can copy a range (of cells) from a workbook and paste it into a graph as a table object. The table object is editable.

You can now add text formatting (e.g. super-/subscripting) to non-consecutive characters via the text object's Properties dialog:

  1. Right-click on the text object and choose Properties.
  2. On the Text tab, press CTRL and in the text box, highlight multiple characters by dragging with your mouse.
  3. Click the desired text formatting button above the text box and click OK to close.

Better position control of text and graphic objects in Origin 2021:

  • A Rotate combo box has been added to the Properties dialog Dimension tab of graphic objects (lines, arrows, polygons, etc. Use it for precisely rotating the object.
  • Mini Toolbar buttons have been added for rotating selected graphic objects in 45 degree increments in clockwise or counter-clockwise directions.
  • Press the Shift key while moving a selected text or graphic object. to confine movement to the horizontal or vertical directions.

Grouping, Aligning and Arranging with the Object Edit Toolbar

Object Edit bar.png


You can group text labels and drawn objects so that they move or resize as a unit:

  1. To select objects, press SHIFT + click; or drag out a box around objects using the Pointer Button Pointer.png tool.
  2. To group the selected objects, click the Group button Group button.png on the Object Edit toolbar.
  3. To ungroup objects, click the Ungroup button Button Ungroup.png on the Object Edit toolbar.


You can align multiple text labels and/or drawn objects with one another using the tools on the Object Edit toolbar:

  1. Select objects to be aligned by holding the SHIFT key while selecting (or drag out a selection box using the Pointer Button Pointer.png tool), then click one of the align objects buttons on the toolbar. Note that objects will be aligned with respect to the first-selected object.


You can bring overlapping objects to the front or send them to the back:

  1. Select the objects that you want to move to the front or the back.
  2. Click the Front button Button Front.png or the Back button Button Back.png on the Object Edit toolbar.
Note: For more information on graph annotations, see your Origin User Guide:

Help: Origin: Origin Help > Graphing > Adding Text and Drawing Objects

You can also use the Object Edit Toolbar to manipulate graph layers. Use buttons to align and set a uniform size for multiple graph layers or to swap layer order.

Object Attachment and Scaling in Graphs

There are two settings that you should know something about, particularly if you subsequently modify axis scales or resize the graph layer after adding annotations: One is the object's Attach to method, the other is the layer's Scale Elements behavior.

Object Attachment

When you add a text or drawing object to an Origin graph window, the object becomes part of the active graph layer. Thus, if you resize or delete that graph layer, you will resize or delete the added object.

In addition to being part of the graph layer that was active at the time of object creation, note also that objects are attached to the graph in one of three ways, depending upon the type of object and where it is created on the page.


To view the "Attach to" setting for any object:

  1. Right-click on a text or drawing object and choose Properties....
  2. Click on the Programming tab and note the object's Attach to setting.
    Object Properties Attachment.png

Though objects remain a part of the layer that was active at the time of their creation, you can manage some object behaviors by changing the object attachment method. An object is attached in one of three ways:

  • Page. When attached to the page, objects are not affected by moving or resizing the graph layer, nor are they affected by a change in axis scales. These objects are still associated with a particular graph layer and they will be hidden or deleted if the layer is hidden or deleted.
  • Layer Frame. Objects that are attached to the layer frame, are resized and moved with respect to the layer frame. However, they are not tied to axis scales and are not affected by changes in the layer's axis scale values. Objects are hidden or deleted if the associated layer is hidden or deleted.
  • Layer and Scales. Objects are linked to a particular range of axis scale values. If you resize the layer, the object is resized accordingly. If you rescale the axes, the object moves in relation to the visible scale and will disappear from view if the linked axis scale range is not displayed. These objects are hidden or deleted if the associated layer is hidden or deleted.

To briefly illustrate why object attachment is important, let's look at the following graph. After the graph was created, arrows and text objects that point to their respective data plots, were added to the graph. Both arrows and text objects are attached to the graph Layer Frame.

Custom graph object attachment 1.png

Now, consider what happens to these objects when we modify the graph's X axis scale (recall that objects attached to the Layer Frame "are unaffected by changes in the layer's axis scale values"). Note that by changing the axis scale display range, we have shifted the data plots but the text objects and arrows did not move with them.

Custom graph object attachment 2.png

The remedy for this is to change the text and drawing objects' Attach to method to be Layer and Scales because "if you rescale the axes, the object moves in relation to the visible scale." Sometimes we may want an object to move with scale changes; at other times we may not. You can force either behavior if you keep in mind the Attach to setting.

Object Scaling

Object scaling often comes up when manually resizing the graph layer or when merging separate graphs into a single multi-panel graph (Graph: Merge Graph Windows). By default, added objects are set to Scale with Layer Frame -- that is, when the graph layer is resized, associated objects such as text objects, axis lines and ticks, and axis titles -- will be scaled proportionally. In the case where you merge four single layer graphs into a single, four layer multi-panel graph, these objects will be scaled down with the reduction in size of the layer frame.

Custom graph scale elements.png

However, this is another default behavior that you may want to change (e.g. you have set your font size to 10 pt. and you want to preserve that size), and you can do this using the Scale Elements control on the Size tab (Layer level) of Plot Details. If our goal is to keep objects at their current size when merging graphs, for instance, we can open the Plot Details dialog box and at the layer level (Format: Layer...), click on the Size tab, choose the Fixed Factor radio button and set the scaling factor to 1.

If you have resized the graph layer, either by merging multiple graphs into a single graph or by manually resizing the layer, you will find that the font sizes do not display at their "correct" size (i.e. if you select a text object, the Font Size list on the Format toolbar shows the original font size). Further, if select a text object, the Status bar will report two font size numbers -- "size" and "actual". You can reset font size so that they are shown as actual size, not scaled size, by choosing Graph: Fix Scale Factors. For more information, see FAQ-441 How do I export graphs with exact size and resolution as specified by publishers?

Arranging Graphs and Layers

A Center Layer(s) to Page button is added to the page-level Mini Toolbar for centering all layers on the graph page without changing relative positions.

UG MT center layers to page.png
Task Method
Merge multiple graph windows into a single graph window.
  • Graph: Merge Graph Windows... menu command

or

  • Merge Graph Windows button Button Merge.png on the Graph toolbar.

Origin has two dialog boxes -- Fitting Layers to Page and Fit Page to Layers -- that are useful for arranging multiple graph panels on the page and for adjusting graph margins.

Extract data plots in one layer to multiple layers.
  • Extract to Layers button Button Extract To Layers.png on the Graph toolbar.


Hint: to preserve your original graph, click the Duplicate button Button Duplicate.png before extracting to layers.

Extract multiple layers in a single graph to multiple graph windows
  • Graph: Extract to Graphs

or

  • Click the Extract to Graphs button Button Extract To Graphs.png on the Graph toolbar.

All layers are extracted to individual graph windows, even if a layer is linked to another layer.

By default, the layextract dialog box has Extracted Layers set to 1:0, which specifies that all layers be extracted. To extract only certain layers, clear Auto and use the layextract X-Function's comma/colon notation to control which layers are extracted. The notation 1:0 means starting with layer 1, extract all layers to graphs (0 denotes all). Specifying 1,3:4, for example, tells Origin to extract only the first, third and the fourth layer. Note that you can enable Keep Source Graph to preserve the original graph.

Add, arrange, resize, position, swap, align, or link layers
  • Graph: Layer Management... menu.
  • Position selected layers using Object Edit toolbar buttons. Hold SHIFT + click to select multiple layers and Align Left, Right, Top, Bottom, etc.

You can use the Layer Management tool's Swap control (Graph: Layer Management,Size/Position tab) to physically swap layer positions without reassigning layer numbers. Before doing so, set each linked layer's Units to % of Page (Size/Speed tab of Plot Details).

Link graph layers
  • Linked Axes Scales tab, layer level of Plot Details dialog box.
  • Link tab of the Layer Management dialog box.

When linking layers, the child layer must have a higher layer number than the parent layer.

Linked layers can be moved and resized together.

You can link layers' axis scale values to be Straight (1:1) or you can specify a Custom mathematical relationship.

Reorder layers

There are several ways to reorder graph layers (reassign Layer number for each Layer). Learn more about reassigning layer numbers in the mini tutorial below this table.

  • Method 1: Open the Layer Management dialog and click the row header (shown in image below) and drag it up or down to change the Layer order.

Swap area.png

For more information, see the Layer Management tool.

  • Method 2: Enter the following LabTalk script in the Command Window (Window:Command Window), then press Enter to execute.

page.reorder(n,m)

The command changes the nth Layer to the mth Layer.

  • Method 3: Use the Front and Back buttons on the Object Edit toolbar (these buttons work on the active layer as indicated by the graph layer icon Layer icon active.png). Alternately, right-click on the graph layer icon and change layer order using shortcut menu commands (e.g. Bring to Front).

When two layers are linked by a common X axis (Double-Y), you can now more-easily swap layer drawing order by right-clicking on the "front" layer in Object Manager (OM) and choosing Push to Back. Previously, swapping layers in OM would prompt to break layer linking.


Note: Reordering layers may break layer linking relationships.

A Note on Inset Graphs: In certain situations (see Tutorial, below), the order in which the layers are drawn on the screen becomes an issue. In this image, we have added an inset graph using the Add Inset Graph with Data button (Graph toolbar). The problem is that the data plot of the parent layer (red symbols) shows through the inset layer (small, black symbols). To fix this, we do two things:

  • Set the inset layer background Color = White -- by default, it is None (Format: Layer, then Background tab).
  • Set the layer Drawing order to Draw layer by layer (Format: Page then Layers tab).
Inset draw layer by layer.png

By default, an inset layer is added "on top of" the parent layer but if needed, you can click on the inset layer to select it, right-click and choose Bring to Front.

Exchange X-Y Axes
  • Graph: Exchange X-Y Axes menu command
  • Exchange Axes Button ExchangeXYAxes.png button on the Graph toolbar.
Move a plot(s) to another layer
  • Method 1: Open Plot Setup dialog(by selecting Graph:Plot Setup), expand the bottom panel, select a plot and drag it from a layer to another layer.
  • Method 2: Run laymplot -d; (e.g. open the Script Window, type the command and press <Enter>) to open the Move Plot dialog to specify plot(s) to move and a target layer.

You can move a plot by Copying(CTRL+C or Copy Range context menu) and Pasting(CTRL+V or Paste context menu) operations, between different layers or different graphs. Please note, the pasted plot won't be associated with the source data of copied plot, but exists as a loose dataset.

In a multi-layer graph, layer order determines drawing order. The 1st layer is plotted and then 2nd layer is plotted on top of it, and so on. The layer with higher number is drawn on top of the layer with lower number. This is important when plots in one layer overlay plots in another layer. When necessary, you can change layer order to change plot drawing order.

This mini tutorial shows you how layer reassignment works. Use the preview window to see how layer number reassignment affects your graph.

  1. Click Help: Origin Central or press F11.
  2. Click on the Graph Sample tab, set the Samples in drop-down list to Area Plots and double-click on this graph:
    Custom graph layermanage tutorial.png
  3. Activate the graph Area Plot With Horizontal Color Gradient, then click the Extract to Layers button Button Extract To Layers.png on the Graph toolbar. Set both number of rows and columns to 1, click OK, then, click OK again for the page spacing. The green layer is on the top of the yellow layer in the figure. The purpose of this last step was simply to create a two layer graph in which the data in one layer partially hides the data in the other layer. What we will do now is to reorder the layers and set the yellow layer on the top, giving you a better view of the two plots.
    Reorder1.png
  4. Choose Graph: Layer Management... menu, then drag the row header "1" of the Layer1 in the Layer Selection downward under the Layer2 (indicated by a blue line), and click OK.
  5. You can see the yellow layer is on the top now.
    Reorder2.png


Alternate Method: You can use the Front Button Front.png or Back Button Back.png toolbar buttons (located in the Object Edit toolbar, or at the top of Layer Selection box in the Layer Management dialog) to bring a layer forward or push it backwards. As happens when you rearrange layer order with the Layer Management dialog, this method swaps layer numbers.

You can easily add an inset layer with data by clicking the Add Inset Graph With Data button Button Add Inset Graph With Data.png on the Graph toolbar or Insert: New Layer(Axes): Inset With Data (Linked Dimension) .

You can copy a layer from one graph window to another graph window. Click to select the layer first (a frame shows around the layer). Then press Ctrl+C or right-click and choose Copy. Click on the target graph window, then right-click to Paste.

Note: For more information on merging graphs, see your Origin User Guide:

Help: Origin: Tutorials > Graphing > Layers > Merging and Arranging Graph Layers

Help: Origin : Origin Help > Graphing > Reference > The Merge Graph Dialog Box

Templates and Themes

Origin's flexible Page > Layer > Plot hierarchy, plus an extensive list of editable object properties makes it easy to customize and save your graph settings for repeat use. You can preserve your custom settings in a couple of ways -- either with templates or with Themes. These concepts are introduced below.

Note: For detailed information please refer to Origin Help file, see:

Help: Origin: Origin Help > Graphing > Creating Graphs from Graph Templates

Help: Origin: Origin Help > Customizing Your Graph > Graph Formats and Themes

Templates

Customizations to your graph can be saved to template files for repeat use. For example, you can customize a graph page to add multiple layers, set relationships between layers, modify data plot properties, and then save all of these attributes as a graph template (.otpu) file. You can further specify that the graph template be "cloneable" allowing you to link these graph customizations to dataset Long Name, Short Name or worksheet column index number and quickly re-create fairly complex graphs using new data.


A few things to note:

  • In a fresh Origin installation, each one of Origin's 100+ built-in graph types uses a specific "system" template when creating a particular graph type. When you click on a Plot menu graph or graphing toolbar button (e.g. Area Button Area.png), one of these templates is used to plot the selected data.
  • System templates are installed to the Origin Program Folder. They are completely customizable but you cannot overwrite the template files in your Program Folder (see next).
  • When you customize and save a system template, it is saved by default to your User Files Folder (UFF). If you save the customized template to the same system template name, the customized template replaces the system template as the template associated with the Plot menu command or toolbar button used to create that plot type. Additionally, the customized template is added to the user's Template Library.
  • To view customized graph templates, click Plot (workbook or matrix should be active) and click Category = MyTemplates. To view System Templates (built-in, not customized), click File: New: From Template. Set Type = Graph and Path = Origin Program Folder.
  • You can save a graph template anywhere (and with any name) that you like -- it does not need to be saved to your UFF. However, by saving customized templates to your UFF, they will be collected in one, easily-remembered place and they will be readily available when you upgrade your Origin software.
Template Library 2016 GSB.png

Use the Switch List Mode button to toggle between preview and list view.

UG Template Library List View Button.png


Themes and Copy/Paste Format

An Origin Theme is a file containing a set of object properties. There are four kinds of Theme files in Origin: graph Themes, worksheet Themes, dialog Themes and function plot Themes.

Graph Themes are a collection of properties of different elements in a graph window. A graph Theme can be very simple (e.g. graph axis major and minor tick direction settings) or it could be something more complex (e.g. a combination of page dimensions, layer background, axis scales, and color palettes). Whether simple or complex, the purpose of graph Themes is to allow you to quickly change one or more object properties in an existing graph, or to apply a consistent set of properties to a selection of graph windows, without having to recreate a suite of settings, or to apply those settings one-by-one to individual graph windows.

All graph objects have a customizable set of properties that are specific to the object type. Therefore, it follows that the properties that can be saved as a Theme differ depending upon the selected object. You can (1) copy a Theme from one object and "paste" it to another object of the same type or (2) you can save a Theme from one object as a named Theme and apply that named Theme to other like objects at a later time.

  1. Right-click on an object in a graph window (e.g. a plot) and choose Copy Format. Depending on what you click on, there may be sub-menu items under the Copy Format shortcut menu, which give you the option as to what exact format to copy.
    • To apply the copied formats to a single object, right-click on your target graph and choose Paste Format To. Again, this shortcut menu might has some sub-items that limit what to paste. In this way, the formatting option(s) from your source object should be applied to your target object.
    • To apply the copied formats to multiple windows in the project, keep the source graph window active and select Edit:Paste Format(Advanced)... from the Origin menu. This opens the Apply Formats dialog box. Here you have the option of editing or selectively applying formats to one or more graph windows in the Origin Project.
  2. If you would prefer to save formats to a named Theme file that you can re-apply at a later time, choose the Save Format As a Theme... shortcut menu item, then use Preferences: Theme Organizer to apply the Theme when needed.

Theme Organizer

Use the Theme Organizer (Preferences: Theme Organizer) to organize and apply Themes to graphs. With this dialog box you can apply a graph Theme simultaneously to multiple graphs in the Origin project file.

To combine multiple Themes in the Theme Organizer dialog box:

  1. Press the CTRL key while selecting multiple Themes, then right-click and choose Combine from the shortcut menu. The shortcut menu in the tool provides an option for editing a Theme, allowing the user to add/delete properties from an existing Theme.


Graph theme organizer.png


  • The Theme Organizer has separate tabs for managing graph, increment list, worksheet, dialog boxes and plotted mathematical function Themes.
  • If you right-click on a graph Theme and save it as your System Theme, then each time you plot a new graph, this System Theme will be applied regardless of the settings that were saved with the graph template†.
  • Use the System Increment Lists tab to manage increment lists and selectively apply them to project graphs.
  • You can load a graph Theme in the Export Graph dialog and the Theme will be applied to the exported image file.

† If you don't want a System Theme to be applied automatically to the graph, save the graph as a template (File: Save Template As) and clear the Apply System Theme to Override check box.

Topics for Further Reading