Merge f7c06da93e569b90cf88f9805185f25ed4dc60c2 into b232410d25da9618bd9f123e2beddb5fd5a16279

This commit is contained in:
Mauro 2016-06-17 12:12:14 +00:00 committed by GitHub
commit b5545ef3ee

View File

@ -719,8 +719,21 @@ end
# create a list of shapes, where each shape is a single boxplot
shapes = Shape[]
groupby = extractGroupArgs(d[:x])
legend --> false
if length(d[:x])==1
widths, centers = violin_coords(d[:y], trim=trim)
# normalize
widths = _box_halfwidth * widths / maximum(widths)
# make the violin
xcenter = discrete_value!(d[:subplot][:xaxis], d[:x][1])[1]
xcoords = vcat(widths, -reverse(widths)) + xcenter
ycoords = vcat(centers, reverse(centers))
push!(shapes, Shape(xcoords, ycoords))
else
groupby = extractGroupArgs(d[:x])
for (i, glabel) in enumerate(groupby.groupLabels)
# get the edges and widths
@ -736,6 +749,8 @@ end
ycoords = vcat(centers, reverse(centers))
push!(shapes, Shape(xcoords, ycoords))
end
end
# d[:plotarg_overrides] = KW(:xticks => (1:length(shapes), groupby.groupLabels))
seriestype := :shape