how to do violin plot in matlab
158 ビュー (過去 30 日間)
古いコメントを表示
I want to plot the Violin Graph with my data, but I am not able to get how to plot those graphs. I saw the Distribution Plot,Distribution Plot in File exchange for Matlab, but I am unable to find the place to input my x-values and y-values.
0 件のコメント
採用された回答
Matt J
2020 年 1 月 29 日
編集済み: Matt J
2020 年 1 月 29 日
Here's my personal favorite.
13 件のコメント
AARISH NAWAZ
2022 年 5 月 24 日
編集済み: AARISH NAWAZ
2022 年 5 月 25 日
I have plotted a red line first (see attchment) and using hold on I plotted the violin plots on the same figure but it starts with 1 I want it to start from zero (I want to move each violin plot to one place left).
@Matt J I have attached the matlab file and the .mat data file. Please have a look
Thanking you in anticipation
AARISH NAWAZ
2022 年 5 月 26 日
How to change Violin Plot axis? I am able to plot it but It starts with one by default, I want it to start from zero. Please see the previous comment from me. You can find all the codes and data required to understand the question. @Matt J
その他の回答 (2 件)
Holger Hoffmann
2021 年 12 月 9 日
編集済み: Holger Hoffmann
2021 年 12 月 9 日
Hi - you may also consider to use this one and modify it: Violin Plot - File Exchange - MATLAB Central (mathworks.com)
0 件のコメント
Adam Danz
2024 年 10 月 9 日
See also swarmchart
tiledlayout(3,1)
violinplot(nexttile,rand(20,3).*[.8 1. 1.2]+[-1 0 1],'Orientation','horizontal')
violinplot(nexttile,0,'DensityDirection','positive')
hold on
violinplot(2,'DensityDirection','negative')
violinplot(nexttile,magic(4));
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1787960/image.png)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Discrete Data Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!