Skip to content

Commit

Permalink
fix typo in plotly_colorscale (#5017)
Browse files Browse the repository at this point in the history
  • Loading branch information
simsurace authored Nov 6, 2024
1 parent c664bfe commit 1e8ed71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PlotsBase/src/plotly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,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 1e8ed71

Please sign in to comment.