29.10.2 Grouped Columns


Grouped Column Indexed Data.png

Contents

Data Requirements

You need to have at least one Y column as input data. Optionally, you can have an additional associated Y error column for each Y column. Another column provides grouping information.

Creating the Graph

Open the plot_gindexed dialog by one of three methods:

In the dialog that opens, select the input data range. Add at least one group column and determine where to put the calculated data. You can then generate a grouped column plot.

You can refer to the section below for the detailed dialog controls:

The plot_gindexed Dialog Box

Plot gindexed dialog box.png

Data Column(s) This branch is used to specify the input data.
Group Column(s) This part includes a display box and a toolbar with five buttons Group List Toolbar.png:
  • Display Box
    The group range(s) selected using Add button will display in this box. The first selected group ranges will be set set primary categorization and form the bottom line of the column plot's group table; the secondary groups selected would continue grouping based on the primary categorization and forming the second layer of the group table, and so forth.
  • Add button Button Group List Add.png
    Click this button then choose a column from menu; or click Select Columns to open the Column Browser and add column(s) to the Display Box as grouping range(s). You can add up to 5 grouping ranges.
  • Remove button Button Group List Remove.png
    Remove the selected data range(s) from the Display Box. This button is available when you select one or more data ranges in the Group Column(s) box.
  • Move Up button Button Group List Move Up.png
    Move the selected data range(s) up in the Display Box. This changes the grouping sequence.
  • Move Down button Button Group List Move Down.png
    Move the selected data range(s) down in the Display Box. This changes the grouping sequence.
  • Select All button Button Group List Select All.png
    Select all data range(s) down in the Group Column(s).
Label Specify a column as label.
Plot Type Specify the plot type, column plot, bar plot or scatter.
Graph Template Specify a user template if needed. By default, the Auto check box is checked and the built-in template GBOX is used.
Output Data Specify where to output the calculated data.

In addition, you can preview the final graph in this dialog.

Note:
  • In order not to sort the grouping range with default alphabetical order, set it(them) as categorical and modify the orders in the Categories tab.
  • By default, we divide the columns into subsets by the first group column when we create a group column plot in this dialog. You can change the default properties of subset in the (Plot Details) Spacing Tab.

Examples

  1. Create a new workbook and click the Button Import Single ASCII.png button to import the Categorical Data.dat file under <Origin EXE Folder>\Samples\Graphing path.
  2. Highlight column B and select Plot > 2D: Bar: Grouped Columns... from top menu to open the plot_gindexed dialog.
  3. In the Group Column(s) section, click the Add button Button Group List Add.png in the top right corner and add column D as the first grouping range, then similarly add column C as the second grouping range.
  4. Click OK to generate the plot.
    Grouped Columns Indexed Data EX.png

For a more extensive tutorial, you can try Grouped Column with Error Bars and Data Labels. The tutorial addresses such things as Fill Pattern and the use and customization of tick label tables (seen in the above graph) for labeling the X axis.

Template

GBOX.otp (installed to the EXE folder of Origin)

Notes

Color variations grouped column 750.png
For more information, see: