Violin plot lazarus / 55-TAChart ---------------------------------------------------------------------- apeoperaio · 2021-04-30 10:09 Hi all, I would like to know if there is a way to generate violin plots using TAChart Violin plot are very informative, much more than simple box and whiskers plots. See violin plots example and usage here: https://twitter.com/MBozukova/status/1387094850995118081/photo/1 Thank you, Andrea ---------------------------------------------------------------------- wp · 2021-04-30 14:28 I understand that the violin plots the density function of a distribution. What is the difference between the left and the right part? ---------------------------------------------------------------------- apeoperaio · 2021-04-30 15:21 Typically there is no difference between left and right. Violin plots are symmetrical. Anyway they can be used to represent two different distribution, one on the left side and one on the right. See for example: https://images.app.goo.gl/EwZtzonAuN8HK5EX9 ---------------------------------------------------------------------- wp · 2021-04-30 15:38 Yes, that was my opinion, too. but when there is a left and a right distribution, to what does the Box-Whisker plot refer? Anyway, in the attachment you find a solution based on two AreaSeries showing the same distribution on the left and right side (just a quick test - it can be optimized, I'm sure), and an overlay BoxAndWhisker series showing the 1%, 25%, 50%, 75% and 99% percentiles. So you see: there is not dedicated ViolinSeries, but it can be composed by other series rather easily. Most of the work is needed by the math to calculate the distribution. ---------------------------------------------------------------------- apeoperaio · 2021-05-03 08:57 Thank you very much for the project! I suppose that when there is a left and a right distribution, two Box- Whiskers plot are drawn. On the right half Box-Whiskers is drawn referring to the right distribution and another half Box-Whiskers plot is drawn on the left side referring to the left distribution. ---------------------------------------------------------------------- apeoperaio · 2025-11-20 17:06 Do you think it would be possible with the proposed approach to draw multiple violin plots (one violin plot as a serie), like for box and whiskers? ---------------------------------------------------------------------- wp · 2025-11-20 19:19 Quote from: apeoperaio on November 20, 2025, 06:06:26 pmDo you think it would be possible with the proposed approach to draw multiple violin plots (one violin plot as a serie), like for box and whiskers? I have not idea how such a series could administrate it's data: While a normal series has one or a fixed count of y values (or even x values) per data point, this series would require an undetermined count of y values per data point. ---------------------------------------------------------------------- apeoperaio · 2025-11-21 10:19 What do you mean with “this series would require an undetermined count of y values per data point"? In the meantime, I found these Python implementations for reference: h ttps://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.violinplot. html#matplotlib.pyplot.violinplot and https://seaborn.pydata.org/generated/seaborn.violinplot.html