Skip to content

Commit

Permalink
fix typo in plotly_colorscale (#5018)
Browse files Browse the repository at this point in the history
  • Loading branch information
simsurace authored Nov 6, 2024
1 parent 9d13a46 commit a6147ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/plotly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ plotly_colorscale(c::AbstractVector{<:Colorant}, α = nothing) =
[[0.0, rgba_string(plot_color(c[1], α))], [1.0, rgba_string(plot_color(c[1], α))]]
else
vals = range(0.0, stop = 1.0, length = length(c))
map(i --> [vals[i], rgba_string(plot_color(c[i], α))], eachindex(c))
map(i -> [vals[i], rgba_string(plot_color(c[i], α))], eachindex(c))
end

function plotly_colorscale(cg::PlotUtils.CategoricalColorGradient, α = nothing)
Expand Down

0 comments on commit a6147ff

Please sign in to comment.