Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
create rgba tuple explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
piever committed May 7, 2021
1 parent 07fee04 commit 217c5d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stats/violin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ function plot!(plot::Violin)
return s == :left ? - 1 : s == :right ? 1 : 0
end
colors = broadcast(x̂, color) do _, c
rgba = to_color(c)
# `RGBA` values cannot be sorted
return rgbatuple(c)
return (red(rgba), green(rgba), blue(rgba), alpha(rgba))
end

sa = StructArray((x = x̂, side = sides, color = colors))
Expand Down

0 comments on commit 217c5d2

Please sign in to comment.