how to do violin plot in matlab

조회 수: 553 (최근 30일)
Sansit Das
Sansit Das 2020년 1월 27일
댓글: AARISH NAWAZ 2022년 5월 26일
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.

채택된 답변

Matt J
Matt J 2020년 1월 29일
편집: Matt J 2020년 1월 29일
  댓글 수: 13
AARISH NAWAZ
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
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

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Holger Hoffmann
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)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by