OriginLab Corporation - Data Analysis and Graphing Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis     
 
Skip Navigation Links
All BooksExpand All Books
TutorialsExpand Tutorials
GraphingExpand Graphing
3D GraphsExpand 3D Graphs

6.12.4 3D Bar and Symbol

Summary

This graph is a combination of a 3D bar plot showing the changes in HPI (Home Price Index) and a 3D scatter plot showing the Unemployment Rate. The data is of several Census Divisions during different years. Colormapping is introduced to both plots based on the Z values.

Categ Sort-5.png

Minimum Origin Version Required: Origin 2015 SR0

What you will learn

This tutorial will show you how to:

  • Plot a 3D bar graph.
  • Add a scatter plot to a 3D bar graph.

Steps

  1. Open the Home Price Index Changes & Unemployment Rate.opj file by selecting File: Open and navigate to <origin exe folder> \Samples\Graphing
  2. Activate book Home Price Index Changes & Unemployment Rate, highlight columns A(X), B(Y), and C(Z), and then select Plot:3D Symbol/Bar/Vector:3D Bars to plot a 3D bar graph.
    3D Bar Symbol 02.png
  3. Right-click on the layer icon and choose Plot Setup from the context menu. In the Plot Setup dialog, set columns A, B, and G1 as X, Y, and Z respectively. Then click the Add button to add this plot to the current layer. After that, click the OK button to close the Plot Setup dialog.
    3D Bar Symbol 03.png
  4. Double-click on the plot to open the Plot Details dialog. In this dialog, select the second plot in the left panel and set the Plot Type as 3D Scatter/Trajectory/Vector.
    3D Bar Symbol 04.png

    In order to show all three panels in Plot Setup dialog, please expand Plot Type panel by clicking Button Expand Preview Up.png and expand Available Data panel by clicking Button Expand Preview Up.png again.

    Please refer to Plotting using Plot Setup for more information.

  5. Select Original in the left panel, then go to the Symbol tab in the right panel, select Col("Unemployment rate") for both Size and Color, and set the Scaling Factor of size as 2.
    3D Bar Symbol 05.png
  6. Go to the Colormap tab, set Level and Fill as shown below.
    3D Bar Symbol 06.png
    3D Bar Symbol 07.png
  7. Go to the Label tab, check the Enable check box, set Label From as Col(F) and Position as above.
    3D Bar Symbol 08.png
  8. Go to the Numeric Format tab, select Decimal Places and set it to 0.
    3D Bar Symbol 08 1.png
  9. Select Layer1 in the left panel. In the right panel, go to the Planes tab, uncheck YZ and ZX, select At Position= for the Position dropdown list and enter 0 for the Percent/Value blank box.
    3D Bar Symbol 09.png
  10. Go to the Axis tab in the right panel, do settings as below:
    3D Bar Symbol 09 1.png
  11. Select the first plot under Layer1 in the left panel, go to the Pattern tab, use Col("Changes in HPI") as the colormapping for both bar border and shape fill.
    3D Bar Symbol 10.png
  12. Go to the Outline tab, set the Width(in%) to 30 as below.
    3D Bar Symbol 10 1.png
  13. Go to the Numeric Format tab, select Decimal Places and set it to 0.
    3D Bar Symbol 10 3.png
  14. Go to the Colormap tab, click Level... header to open the Set Levels dialog. Do settings as below.
    3D Bar Symbol 10 2.png
  15. Click OK button to close the Set Levels dialog. Click Fill... and select the Pumpkin Patch as the palette. Click OK to close the Fill dialog.
    3D Bar Symbol 11.png
  16. Click the OK button to close the Plot Details dialog.
  17. With the graph window active, select Graph: New Color Scale from the main menu to add a color scale for the first plot. Double-click on the color scale to open the Color Scale Control dialog. In this dialog, apply settings below.
    3D Bar Symbol 11 1.png
  18. Click OK button to close the Color Scale Control dialog. Then right-click the layer icon to activate the other plot from the context menu, then select Graph: New Color Scale from the main menu to add another color scale. Double-click on this color scale to open the Color Scale Control dialog. In this dialog, do the settings as the previous step does.
  19. Add titles Changes in HPI and Unemployment Rate for these two color scales. Finally, you will get the graph given below.
    3D Bar Symbol 01.png

Controlling the Categorical Values

  1. In the following steps, we want to customize the order of values shown in the graph but not change the source data. Right click on window title of source data book, select View: Categories, a new column label named Categories will be added to the head of the worksheet. Double click the "unsorted" to open the Categories dialog:
    3d bar control cat values.png
  2. Uncheck the <auto> checkbox, then you can specify the order of the items by using Cate-sort-2.png buttons based on the order of census division shown in graph below:
    Categ Sort-4.png
  3. Double click the Categories cell of column B,"Unsorted", to open the Categories dialog. Select Ascending in the Sort list, click OK to close the dialog.
    Categ Sort-1.png
  4. The 3D bar graph will be updated automatically with the new order of Categorical data.
    Categ Sort-5.png
 

© OriginLab Corporation. All rights reserved.