From a6147fff8b73a3a70ebe0cea81f736b6d1f11784 Mon Sep 17 00:00:00 2001 From: Simone Carlo Surace <51025924+simsurace@users.noreply.github.com> Date: Wed, 6 Nov 2024 15:19:13 +0100 Subject: [PATCH] fix typo in `plotly_colorscale` (#5018) --- src/backends/plotly.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index 12f81ad60..b2c33a85c 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -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)