Clear Filters
Clear Filters

How to creat grouped violin plot?

47 views (last 30 days)
xu yichen
xu yichen on 8 May 2023
Edited: Abhinaya Kennedy on 14 Jun 2024
Hi, how can I create a grouped violin plot like this? I have tried different violin plot function such as GitHub - bastibe/Violinplot-Matlab: Violin Plots for Matlab. But I cannot find a way to create violin plot that is grouped by their categoery. The example figure is created in Seaborn-python. But I am not very familiar with python so I can only create the figure with default setting. It will be great if somebody can help me to create it in Matlab! :)

Answers (1)

Abhinaya Kennedy
Abhinaya Kennedy on 14 Jun 2024
Edited: Abhinaya Kennedy on 14 Jun 2024
I found this on MATLAB File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/45134-violin-plot. It does pretty much what your image depicts. Hope it helps.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!