Skip to content

Commit

Permalink
fix plot_color error
Browse files Browse the repository at this point in the history
  • Loading branch information
daschw committed Aug 10, 2018
1 parent 0f20716 commit 29cbfcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/colors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ plot_color(s::Symbol, α::Number) = (iscgrad_symbol(s) ? cgrad(s, alpha=α) : RG
plot_color(grad::ColorGradient, α::Number) = cgrad(grad, alpha=α)

function plot_color(cs::AbstractArray)
a = Array{RGBA{Float64}}(undef, size(cs))
a = Array{RGBA{Float64}}(undef, size(cs)...)
for i in eachindex(cs)
a[i] = plot_color(cs[i])
end
Expand Down

0 comments on commit 29cbfcb

Please sign in to comment.