how to do violin plot in matlab

552 visualizaciones (últimos 30 días)
Sansit Das
Sansit Das el 27 de En. de 2020
Comentada: AARISH NAWAZ el 26 de Mayo de 2022
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.

Respuesta aceptada

Matt J
Matt J el 29 de En. de 2020
Editada: Matt J el 29 de En. de 2020
  13 comentarios
AARISH NAWAZ
AARISH NAWAZ el 24 de Mayo de 2022
Editada: AARISH NAWAZ el 25 de Mayo de 2022
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 el 26 de Mayo de 2022
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

Iniciar sesión para comentar.

Más respuestas (1)

Holger Hoffmann
Holger Hoffmann el 9 de Dic. de 2021
Editada: Holger Hoffmann el 9 de Dic. de 2021
Hi - you may also consider to use this one and modify it: Violin Plot - File Exchange - MATLAB Central (mathworks.com)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by