I would like to use the ChartElementFunction
option of DistributionChart
to plot data with a custom style that includes custom plot markers, such as open circles. I am struggling with the scaling of the markers, though.
If I use Point
s as plot markers, everything is fine:
data = Table[RandomReal[i + {1, 3}, 10], {i, 5}];
cef1[{{xmin_, xmax_}, {ymin_,ymax_}}, data_, metadata_]:=
{Black, PointSize[Large], Point[{RandomReal[{xmin, xmax}], #}]& /@ data};
DistributionChart[data, ChartElementFunction -> cef1]
If I use Circle
s, they are affected by the aspect ratio of the plot and shown as ellipses:
cef2[{{xmin_, xmax_}, {ymin_, ymax_}}, data_, metadata_] :=
{Black, Circle[{RandomReal[{xmin, xmax}], #}, 0.05]& /@ data};
DistributionChart[data, ChartElementFunction -> cef2]
Is there a way to get the scaling right, for example make the markers behave like PlotMarkers
in ListPlot
?