17.2.9 Creating Violin Plot

Creating Violin Plots

Origin supports seven violin plot graph template, you can create these violin graph type by the memu directly.

Creating Violin Plot 02.png


To create a violin plot:

  1. Highlight one or more Y worksheet columns (or a range from one or more Y columns).
  2. Select Plot: 2D: Violin Plot: Violin Plot/ Violin with Box/ Violin with Point/ Violin with Quartile/ Violin with Stick/ Split Violin/ Half Violin

Each Y column of data is represented as a separate violin plot. The column names or labels supply the X axis tick labels.


Customizing Violin Plots

To customize the violin plot display:

  1. Double-click on the violin plot.

or

  1. Right-click and select Plot Details.

Both actions open the Plot Details dialog with the violin data plot icon active on the left side of the dialog. The violin plot controls are available on tabs on the right side of the dialog.

Creating Violin Plot 01.png

For more information on Box Chart customizations, see the following topics:


Violin Plot Examples

Several box chart examples are displayed below. All examples were created from the data in Violin Plots - Horizontal Split Violin file, in the ‘Help: Learning Center: Graph Sample’. The table references datasets (columns) in the US Mean Temperature worksheet and lists customizations made in the graph's Plot Details dialog box.

Violin Plot Ex1.png Plotted from Col(D) through Col(F)

Menu Entry:
Plot: 2D> Violin Plot: Violin with Point

Distribution tab:
  • Check Extend Data Points and select 20.
  • Set Color and Fill to By Point: Candy.
  • Set Extend (%bandwidth) to 300.
Violin Plot Ex2.png Plotted from Col(M) through Col(P)

Menu Entry:
Plot: 2D> Violin Plot: Split Violin

Box tab:
  • Set Type to Data


Distribution tab:

  • Set Color to Single: #8FB5DA
Violin Plot Ex3.png Plotted from Col(D) through Col(F)

Menu Entry:
Plot: 2D> Violin Plot: Half Violin

Box tab:
  • Set Type to Half Box [Left] + Data [Right]


Data tab:

  • Set Bins Alignment to Left


Distribution tab:

  • Set Fill to By Plot : Q6 Moderate 3


Symbol tab:

  • Set Symbol Color to By Plot : Q6 Moderate 3
Violin Plot Ex4.png Plotted from Col(D) through Col(F)

Menu Entry:
Plot: 2D> Violin Plot: Violin with Box

Panel tab:
  • Select By Column, and select P(Y): State as Column(s).


Distribution tab:

  • Set Fill to By Plot : Q6 Moderate 3