6.5.8 Symbol Plot with Size and Colormap from Other Columns



Video Image.png Video Text Image.png Website blog icon circle.png Blog Image 33x33px.png

Summary

This tutorial will show you how to create a symbol plot with size and color from other columns.

This graph displays a symbol plot of data from multiply columns where the size and color of the symbol have been derived from other data columns in the worksheets. User defined Colormap has been applied to the plot.

Symbol Plot with Size and Color 01.png

Minimum Origin Version Required: 2016 SR0

What you will learn

This tutorial will show you how to:

  • How to control the size and color of plot symbols using values in worksheet columns.
  • How to set the user defined colormap
  • How to edit the grids lines for plot

Steps to Construct a Symbol Plot with Size and Colormap from Other Columns

This tutorial is associated with the Tutorial Data project:<Origin EXE Folder>\Samples\Tutorial Data.opj.

  1. Open the Tutorial Data project and browse to folder Symbol Plot with Size and Color Mapping in Project Explorer.
  2. Select the Col(X)and Col(Y) in first sheet of the workbook and click Plot > Basic 2D : Scatter to get a scatter plot.
  3. Click Graph: Layer Contents in main menu with the graph active, and select all the columns with Long name Y, Y1, Y2 and add them into the right panel. Click Ungroup button to ungroup all datasets. Click OK to close dialog. The order and quantity of column Long name listed in right panel should be exactly the same as the graph, use up and down button to adjust the position, and use Button Select To Left.png to remove the repetitive items.
    SymbolandSize1v.png
  4. Double click the scatter to open the Plot Details dialog, go to Symbol tab, Set the Symbol for each plot one by one follows the Graph below, after each step setting, please click Apply to make a rudimentary saving.
  5. The next 7 steps will guide you finish the symbol setting for each dataplot. Symbol setting for dataplot 1:
    SymbolandSize2.png
  6. Symbol setting for dataplot 2
    SymbolandSize3.png
  7. Symbol setting for dataplot 3
    SymbolandSize4.png
  8. Symbol setting for dataplot 4
    SymbolandSize5.png
    Add label for dataplot 4
    SymbolandSize6.png
  9. Symbol setting for dataplot 5
    SymbolandSize7.png
    Add label for dataplot 5
    SymbolandSize8.png
  10. Symbol setting for dataplot 6 and 7, which act as the legend:
    SymbolandSize9.png

    SymbolandSize10.png
  11. Then, Click OK to close the window. Double click the Axis X to open the Axis dialog, and set the Scale for both Horizontal and Vertical icons From -50 to 50 with same Major and Minor ticks style:
    SymbolandSize10-t.png
    then click OK to apply. you can get a graph like this:

  12. SymbolandSize11.png

Steps to Set the Colormap and Legend

  1. The Edge color of the post-Electrical Open and pre-Electrical Open plot both used Map:Col(C), so we will further make some style setting for Color scale in Colormap tab. Click Level to open Set Levels dialog, set levels from 0 to 155 with Major Levels 5.
    Setlevels.png
  2. Double click each Level value to edit them and double click each Fill color to edit them as well:
    SymbolandSize13.png
    Click Apply to apply these color setting to the graph (for the post-Electrical Open scatter).
  3. Then we would like to save the setting as a theme named as mycolor.oth. The theme will be applied to the post-Electrical Open scatter.
    SymbolandSize14.png
    Apply the theme to the pre-Electrical Open scatter.
    SymbolandSize15.png
    Click OK to close the window.
  4. Click Graph: Legend: Dataplot in main menu, a legend will display in the graph. Right click the legend and click Properties in list, and edit the content in Object Properties dialog as follows graph, then click OK.
    SymbolandSize16.png
  5. Click Insert: Color Scale in main menu, an Color Scale will display in the graph.

More Customization Steps

  1. Select Format: Layer in main menu to open the Plot Details dialog, go to the Size/Speed tab, edit the Layer Area as follows:
    SymbolandSize17.png
  2. Go to the Display tab in Plot Details dialog, edit the Clipping Margins(%) to -2%, click OK to close dialog.
    SymbolandSize18.png
  3. Copy the previous Legend and paste it on the graph, edit the new legend in this way:
    SymbolandSize19.png
    click OK to close dialog.
  4. Double click the color scale to open the Color Scale Control, go to the Levels page, check on Hide Head Level and Hide Tail Level, then go to the Labels page and set the Display as graph below:
    SymbolandSize20.png
    Add a title Elapsed Time for the color scale in Title tab, Click OK to apply.
  5. Double click the axis to open the Axis dialog. Set Grids line for both Horizontal and Vertical in Grids tab in the same style as shown in graph below:
    SymbolandSize21.png
    Click OK to apply the setting and close dialog.
  6. At last, add a Text "symbol size is relative to event energy" in the graph by using Text Tool Button Text Tool.png in Tools box.