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
PolarExpand Polar

6.11.6 Polar Graph with Columns and Stack Columns



Summary

By default, Origin polar graphs are line plots. Note, however, that you can convert an existing polar line plot to column/bars. Further, a grouped column plot in polar coordinate system can be stacked.

Minimum Origin Version Required: 2015 SR0

What You Will Learn

This tutorial will show you how to:

  • plot polar graphs with columns
  • control the column width using a dataset
  • create a stacked column plot in the polar coordinate system
  • customize the polar axes

Steps

Polar Graph with Columns

Tutorial Polar with Column 01.png

This tutorial is associated with the Tutorial Data project:<Origin EXE Folder>\Samples\Tutorial Data.opj.
You can refer to this graph in Origin Central. (Select Help: Origin Central menu or press F11 key , and then open Graph Sample: Polar Graphs)

  1. Open the Tutorial Data project and browse to the folder Column and Stack Column and activate Book18.
  2. Highlight column B and select Plot:Specialized:Polar theta(X) r(Y) to create a line plot in the polar coordinate system. Click on the legend object and delete it from the graph.
  3. Double-click on the line plot to open the Plot Details dialog box. Make sure the left panel is expanded and set Plot Type to Column/Bar. This will change the line plot to a column plot.
  4. In the Pattern tab, under the Fill section, set Color to Color Mapping:Col(D). This will map column colors in the plot using the row value in column D of the worksheet (note that a Colormap tab is added to Plot Details. Click on this tab to see how values are mapped to fill color).
  5. Set the Transparency in this tab to 70%, and Width of border to 2 :
    Tutorial Polar with Column 02.png
  6. Go to the Spacing tab, select Col(C):"Size" from the Width(in %) drop-down menu and type in 8 as Scaling Factor. This causes values in column C to determine the width of the columns in the plot.
    Tutorial Polar with Column 03.png
  7. Go to Colormap tab, click Level head. Set the level from 0 to 1 and Increment to 0.2 in the Set Levels dialog,
    Tutorial Polar with Column 05.png
  8. Go to Size/ Speed tab under Layer1 level, and set Layer Area as following:
    Tutorial Polar with Column 04.png

    Click OK to close the Plot Details dialog.
  9. Now we will customize the graph Angular Axes.
    • Double-click on an axis (Angular or Radial) to open the Axis dialog. Go to the Scale tab under the Angular tree node and set the Value under Major Ticks to 45, and set the Count under Minor Ticks to 2.
    • Go to Format tab under Tick Labels tab of Angular -Outer tree node. Check Bold check-box.
    • Go to Grids tab under Angular tree node. Change Style of Major Grid Lines to Dash.
    • Go to Line and Ticks tab under Angular -Outer tree node. Change Thickness of Line to 1.5.
  10. In the Axis dialog, we also can customize the Radial Axes for this polar graph.
    • Click on the Radial Axes Configuration button Radial Axes Configuration button.png on the right-top of this dialog to open the dialog. In the dialog, choose 0 90 180 270 under the Angles List drop-down list.
    Tutorial Polar with Column 06.png
    • Go to the Scale tab under the Radial tree node. Set scale from 0 to 1.
    • Go to the Format tab under Tick Labels tab, and then
      • select the Radial - Inner1, change Size to 12, check Bold box, and set Rotate (deg.) to 0.
      • select the Radial - Inner2, change Size to 12, and check Bold box.
      • select both Radial - Inner3 and Radial - Inner4, then uncheck Show.
    • Go to the Display tab under Tick Labels tab of Radial - Inner1 tree node. Choose Custom in Display drop-down list, and enter .2* in Custom Format text box.
    • Go to the Title tab and highlight all radial axes node. Uncheck Show check box.
    • Go to the Grids tab under Radial tree node. Uncheck Show check box under Minor Grid Lines. Click OK to save the setting and close the dialog.
    • Go to Line and Ticks tab, select all radial axes. Change Thickness of Line to 1.5. And set Style to In & Out, Length to 5 for both Major Ticks and Minor Ticks.
    Tutorial Polar with Column 07.png
    • Go to Special Ticks tab of Radial - Inner 1, then set Axis Begin value to Show, Axis End value to Hide. Choose Radial-Inner 2, set both Axis Begin and Axis End value to Hide. Click OK to apply the setting and close the dialog.
  11. Select Graph: New Color Scale to add the color scale legend. To customize the color scale legend, double click on the color scale to open the dialog.
    • In the Color Scale Control dialog, go to Level page, and check the Hide Head and Tail Levels
    • Go to Lables page, check Set Decimal Places check box and enter 1 in the Decimal Places text box.
    • Go to Layout page, select Separated in the Layout drop-down list. Click OK to apply the setting and close the dialog.
  12. Click on the Enable/Disable Anti-Aliasing button Button Enable Anti-Aliasing.png. This polar column plot should look something like this:
    Tutorial Polar with Column 01.png

Polar Graph with Stack Columns

Tutorial Polar with Stack Column 01.png

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 Column and Stack Column and activate Book3F.
  2. Highlight columns B through D and select Plot:Specialized:Polar theta(X) r(Y) to create a grouped line plot in the polar coordinate system.
  3. Double-click on the line plot to open the Plot Details dialog box. Make sure the left panel is expanded and set Plot Type to Column/Bar and click Apply to change the plot to a grouped column plot.
  4. On the Group tab, click the ... button to the right of Fill Color. This opens the Increment Editor. Right-click on the first Background Color, black, and delete it from the increment list:
    Tutorial Polar with Stack Column 02.png
  5. Click OK to apply the new increment list and close the Increment Editor.
  6. Go to the Spacing tab and set Gap Between Bars (in %) to 30.
  7. In the left panel of the Plot Details dialog, click Layer 1 (take care not to clear the check box) to see the Layer Properties. Go to the Stack tab and recreate the following settings so that the columns will be stacked and normalized to 100%:
    Tutorial Polar with Stack Column 03.png
  8. Go to the Display tab and select the check box Grid on Top of Data to draw grid lines on top of data plot. Clear the X Axes check box under Show Elements to hide the Angular axis and its associated grid lines in the graph:
    Tutorial Polar with Stack Column 04.png
  9. Click OK to apply the settings and close the Plot Details dialog box.
  10. Click the Button Rescale.png button in the Graph toolbar to rescale the radial axis of the graph from 0-1 to 0-100 (Or you can press CTRL+R).
  11. We have created a 100% Stack Column graph in polar coordinate system, and now we will customize its axes. Double-click on any axis to open the Axis dialog. Click on the Radial Axes Configuration button to open the dialog box. Recreate the following settings to display only one Radial axis at 120 degrees on the polar graph. Click OK.
    Tutorial Polar with Stack Column 05.png
  12. Go to Show tab and you will see the Radial - Inner 1 in the left panel. Select it, and change the Flow Direction to Negative so that the tick label will be displayed outside the data plot.
    Tutorial Polar with Stack Column 08.png
  13. Go to the Scale tab and make sure Radial is selected in the left panel. Set From: 10 and To: 100. Under Major Ticks section, choose By Custom Positon in the Type drop-down list, and enter 40 80 in the 'Postion text box. Set Count to 0 for minor ticks
    Tutorial Polar with Stack Column 06.png
  14. Go to the Grids tab. For Radial Axes, set the major grid lines as following image:
    Tutorial Polar with Stack Column 07.png
  15. Go to the Tick Labels tab, add a % suffix under Display subtab. Add set a horizontal offset under Format subtab.
    Tutorial Polar with Stack Column 09.png
    Tutorial Polar with Stack Column 09b.png
  16. Go to the Title page and clear the Show check box to hide the axis title.
  17. Click OK to close the Axis dialog box. Your graph should look something like this:
    Tutorial Polar with Stack Column 01.png
     

    © OriginLab Corporation. All rights reserved.